summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-05 06:31:43 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-05 06:31:43 +0000
commitc0089b4d104cdac3fa7408615ae28a9f8c78c992 (patch)
treecf0e7b7e77201c765b463e7cfd69ef77b9bfc22b /gc.c
parent77857bfc879377dc726b84173ec849c549e5b470 (diff)
use attribute is more simple way for r41083
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41084 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/gc.c b/gc.c
index 6e56e11022..41bf553eb5 100644
--- a/gc.c
+++ b/gc.c
@@ -2277,8 +2277,7 @@ ready_to_gc(rb_objspace_t *objspace)
}
#if defined(__GNUC__) && __GNUC__ == 4 && __GNUC_MINOR__ == 4
-# pragma GCC push_options
-# pragma GCC optimize ("O0")
+__attribute__((optimize("O0")))
#endif
static void
before_gc_sweep(rb_objspace_t *objspace)
@@ -2301,9 +2300,6 @@ 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)