… | |
… | |
47 | # define decltype(x) __decltype(x) |
47 | # define decltype(x) __decltype(x) |
48 | #elif GCC_VERSION(3,0) |
48 | #elif GCC_VERSION(3,0) |
49 | # define decltype(x) typeof(x) |
49 | # define decltype(x) typeof(x) |
50 | #endif |
50 | #endif |
51 | |
51 | |
52 | #if GCC_VERSION(4,5) && 0 // the #else part is generating better code on 4.5 |
52 | #if GCC_VERSION(4,5) |
53 | # define unreachable() __builtin_unreachable () |
53 | # define unreachable() __builtin_unreachable () |
54 | #else |
54 | #else |
55 | // this seems to work fine, but gcc always emits a warning for it :/ |
55 | // this seems to work fine, but gcc always emits a warning for it :/ |
56 | static inline void unreachable () attribute ((noreturn)); |
56 | static inline void unreachable () attribute ((noreturn)); |
57 | static inline void unreachable () { } |
57 | static inline void unreachable () { } |