diff options
author | Nathan Binkert <nate@binkert.org> | 2007-08-12 09:56:37 -0700 |
---|---|---|
committer | Nathan Binkert <nate@binkert.org> | 2007-08-12 09:56:37 -0700 |
commit | 64295b800fd67e9b9bb3eee0131511a71ddf1fdb (patch) | |
tree | ed1c759f11384dd2c263b43d7842be2922c5c39d /src/base/compiler.hh | |
parent | b92594dd90f54a892771989a8164148e6647c9ab (diff) | |
parent | ec4000e0e284834df0eb1db792074a1b11f21cc8 (diff) | |
download | gem5-64295b800fd67e9b9bb3eee0131511a71ddf1fdb.tar.xz |
merge
--HG--
extra : convert_revision : 5866eaa4008c4fa5da7fbb443132b8326955f71d
Diffstat (limited to 'src/base/compiler.hh')
-rw-r--r-- | src/base/compiler.hh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/base/compiler.hh b/src/base/compiler.hh index dc23ed7b3..2c655af60 100644 --- a/src/base/compiler.hh +++ b/src/base/compiler.hh @@ -40,11 +40,13 @@ #define M5_ATTR_NORETURN __attribute__((noreturn)) #define M5_PRAGMA_NORETURN(x) #define M5_DUMMY_RETURN +#define M5_VAR_USED __attribute__((unused)) #elif defined(__SUNPRO_CC) // this doesn't do anything with sun cc, but why not #define M5_ATTR_NORETURN __sun_attr__((__noreturn__)) #define M5_DUMMY_RETURN return (0); #define DO_PRAGMA(x) _Pragma(#x) +#define M5_VAR_USED #define M5_PRAGMA_NORETURN(x) DO_PRAGMA(does_not_return(x)) #else #error "Need to define compiler options in base/compiler.hh" |