Message ID | 1468751686-28047-2-git-send-email-ard.biesheuvel@linaro.org |
---|---|
State | Accepted |
Commit | 357cec385d4f44385b24c299a601afc811abd9b7 |
Headers | show |
diff --git a/MdePkg/Include/Base.h b/MdePkg/Include/Base.h index 858385828d93..7dbf9386b6b4 100644 --- a/MdePkg/Include/Base.h +++ b/MdePkg/Include/Base.h @@ -89,10 +89,11 @@ VERIFY_SIZE_OF (CHAR16, 2); // warnings. // #ifndef UNREACHABLE - #ifdef __GNUC__ + #if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 4) /// /// Signal compilers and analyzers that this call is not reachable. It is /// up to the compiler to remove any code past that point. + /// Not implemented by GCC 4.4 or earlier. /// #define UNREACHABLE() __builtin_unreachable () #elif defined (__has_feature)