compiler.hh (10291:56772eb01583) compiler.hh (10686:1922f9d2ac01)
1/*
2 * Copyright (c) 2012 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 66 unchanged lines hidden (view full) ---

75#endif
76
77#if defined(__GNUC__) // clang or gcc
78# define M5_ATTR_NORETURN __attribute__((noreturn))
79# define M5_DUMMY_RETURN
80# define M5_VAR_USED __attribute__((unused))
81# define M5_ATTR_PACKED __attribute__ ((__packed__))
82# define M5_NO_INLINE __attribute__ ((__noinline__))
1/*
2 * Copyright (c) 2012 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 66 unchanged lines hidden (view full) ---

75#endif
76
77#if defined(__GNUC__) // clang or gcc
78# define M5_ATTR_NORETURN __attribute__((noreturn))
79# define M5_DUMMY_RETURN
80# define M5_VAR_USED __attribute__((unused))
81# define M5_ATTR_PACKED __attribute__ ((__packed__))
82# define M5_NO_INLINE __attribute__ ((__noinline__))
83# define M5_DEPRECATED __attribute__((deprecated))
84# define M5_DEPRECATED_MSG(MSG) __attribute__((deprecated(MSG)))
83#endif
84
85#if defined(__clang__)
86# define M5_CLASS_VAR_USED M5_VAR_USED
87#else
88# define M5_CLASS_VAR_USED
89#endif
90
91#endif // __BASE_COMPILER_HH__
85#endif
86
87#if defined(__clang__)
88# define M5_CLASS_VAR_USED M5_VAR_USED
89#else
90# define M5_CLASS_VAR_USED
91#endif
92
93#endif // __BASE_COMPILER_HH__