diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/platform.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/platform.h b/include/platform.h index 8210e5c49..ea49c7e92 100644 --- a/include/platform.h +++ b/include/platform.h | |||
@@ -45,6 +45,13 @@ | |||
45 | 45 | ||
46 | #define UNUSED_PARAM __attribute__ ((__unused__)) | 46 | #define UNUSED_PARAM __attribute__ ((__unused__)) |
47 | #define NORETURN __attribute__ ((__noreturn__)) | 47 | #define NORETURN __attribute__ ((__noreturn__)) |
48 | |||
49 | #if __GNUC_PREREQ(4,5) | ||
50 | # define bb_unreachable(altcode) __builtin_unreachable() | ||
51 | #else | ||
52 | # define bb_unreachable(altcode) altcode | ||
53 | #endif | ||
54 | |||
48 | /* "The malloc attribute is used to tell the compiler that a function | 55 | /* "The malloc attribute is used to tell the compiler that a function |
49 | * may be treated as if any non-NULL pointer it returns cannot alias | 56 | * may be treated as if any non-NULL pointer it returns cannot alias |
50 | * any other pointer valid when the function returns. This will often | 57 | * any other pointer valid when the function returns. This will often |