Go to the documentation of this file.
43 #ifndef __BASE_COMPILER_HH__
44 #define __BASE_COMPILER_HH__
48 #if defined(__GNUC__) // clang or gcc
49 # define M5_ATTR_NORETURN __attribute__((noreturn))
50 # define M5_DUMMY_RETURN
51 # define M5_VAR_USED __attribute__((unused))
52 # define M5_ATTR_PACKED __attribute__ ((__packed__))
53 # define M5_NO_INLINE __attribute__ ((__noinline__))
54 # define M5_DEPRECATED __attribute__((deprecated))
55 # define M5_DEPRECATED_MSG(MSG) __attribute__((deprecated(MSG)))
58 #if defined(__clang__)
59 # define M5_CLASS_VAR_USED M5_VAR_USED
61 # define M5_CLASS_VAR_USED
64 #endif // __BASE_COMPILER_HH__
Generated on Fri Jun 9 2017 13:03:40 for gem5 by doxygen 1.8.6