ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/include/compiler.h
(Generate patch)

Comparing deliantra/server/include/compiler.h (file contents):
Revision 1.7 by root, Sun May 2 11:32:14 2010 UTC vs.
Revision 1.8 by root, Sun May 2 14:46:56 2010 UTC

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 () { }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines