changeset 1f5e8b7bb6b0 in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=1f5e8b7bb6b0
description:
        Compiler: Add an M5_NO_INLINE define.

diffstat:

 src/base/compiler.hh |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (19 lines):

diff -r c226cd1e5e5e -r 1f5e8b7bb6b0 src/base/compiler.hh
--- a/src/base/compiler.hh      Wed Nov 23 16:34:13 2011 -0500
+++ b/src/base/compiler.hh      Sun Nov 27 22:00:57 2011 -0500
@@ -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
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to