summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gc.c b/gc.c
index f3fb37207b..6e56e11022 100644
--- a/gc.c
+++ b/gc.c
@@ -2276,6 +2276,10 @@ ready_to_gc(rb_objspace_t *objspace)
return TRUE;
}
+#if defined(__GNUC__) && __GNUC__ == 4 && __GNUC_MINOR__ == 4
+# pragma GCC push_options
+# pragma GCC optimize ("O0")
+#endif
static void
before_gc_sweep(rb_objspace_t *objspace)
{
@@ -2297,6 +2301,9 @@ before_gc_sweep(rb_objspace_t *objspace)
rb_sweep_method_entry(GET_VM());
}
}
+#if defined(__GNUC__) && __GNUC__ == 4 && __GNUC_MINOR__ == 4
+# pragma GCC pop_options
+#endif
static void
after_gc_sweep(rb_objspace_t *objspace)