summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gc.c b/gc.c
index f97a74e2dc..eb37abd82b 100644
--- a/gc.c
+++ b/gc.c
@@ -2288,7 +2288,7 @@ ready_to_gc(rb_objspace_t *objspace)
}
#if defined(__GNUC__) && __GNUC__ == 4 && __GNUC_MINOR__ == 4
-__attribute__((optimize("O0")))
+__attribute__((noinline))
#endif
static void
before_gc_sweep(rb_objspace_t *objspace)