aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)