summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-12-20 13:55:00 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-12-20 13:55:00 +0000
commita198987f0b44ec861cf72d56762da79f03315e9c (patch)
tree3f960174f08420f25494eb191443bc1b5aa989bc /gc.c
parente5a3aba50e2bd7e0327aacd8fe1ab7963fc4a007 (diff)
gcc noinline attribute is available since gcc-3.1.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7613 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gc.c b/gc.c
index 6489c218a0..169851f6d9 100644
--- a/gc.c
+++ b/gc.c
@@ -431,7 +431,9 @@ static unsigned int STACK_LEVEL_MAX = 655300;
#endif
#ifdef __GNUC__
+# if ( __GNUC__ == 3 && __GNUC_MINOR__ > 0 ) || __GNUC__ > 3
__attribute__ ((noinline))
+# endif
#endif
static void
set_stack_end(VALUE **stack_end_p)