]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/Base.h
MdePkg: avoid __builtin_unreachable() on GCC v4.4
[mirror_edk2.git] / MdePkg / Include / Base.h
index 858385828d933ff999677e83362f0b06493d15c1..7dbf9386b6b47e6f43630a811ded4483a7d76dba 100644 (file)
@@ -89,10 +89,11 @@ VERIFY_SIZE_OF (CHAR16, 2);
 // warnings.\r
 //\r
 #ifndef UNREACHABLE\r
-  #ifdef __GNUC__\r
+  #if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 4)\r
     ///\r
     /// Signal compilers and analyzers that this call is not reachable.  It is\r
     /// up to the compiler to remove any code past that point.\r
+    /// Not implemented by GCC 4.4 or earlier.\r
     ///\r
     #define UNREACHABLE()  __builtin_unreachable ()\r
   #elif defined (__has_feature)\r