summaryrefslogtreecommitdiff
path: root/src/base
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2011-11-27 22:00:57 -0500
committerGabe Black <gblack@eecs.umich.edu>2011-11-27 22:00:57 -0500
commit13552dc3041c2c85a4a57512c95f063e6e627099 (patch)
treeff3a2bf2cbcf1e680b455d839d3d8066a92314a6 /src/base
parent88e91cafc62ef585b3fb9d981c22d88153aab135 (diff)
downloadgem5-13552dc3041c2c85a4a57512c95f063e6e627099.tar.xz
Compiler: Add an M5_NO_INLINE define.
--HG-- extra : rebase_source : 1f5e8b7bb6b0a8bb4f951b6d7189964d96ed5df1
Diffstat (limited to 'src/base')
-rw-r--r--src/base/compiler.hh2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/base/compiler.hh b/src/base/compiler.hh
index 3315fb2f7..a95cb791c 100644
--- a/src/base/compiler.hh
+++ b/src/base/compiler.hh
@@ -42,6 +42,7 @@
#define M5_DUMMY_RETURN
#define M5_VAR_USED __attribute__((unused))
#define M5_ATTR_PACKED __attribute__ ((__packed__))
+#define M5_NO_INLINE __attribute__ ((__noinline__))
#elif defined(__SUNPRO_CC)
// this doesn't do anything with sun cc, but why not
#define M5_ATTR_NORETURN __sun_attr__((__noreturn__))
@@ -50,6 +51,7 @@
#define M5_VAR_USED
#define M5_PRAGMA_NORETURN(x) DO_PRAGMA(does_not_return(x))
#define M5_ATTR_PACKED __attribute__ ((__packed__))
+#define M5_NO_INLINE __attribute__ ((__noinline__))
#else
#error "Need to define compiler options in base/compiler.hh"
#endif