ruby-changes:29032
From: naruse <ko1@a...>
Date: Wed, 5 Jun 2013 15:31:54 +0900 (JST)
Subject: [ruby-changes:29032] naruse:r41084 (trunk): use attribute is more simple way for r41083
naruse 2013-06-05 15:31:43 +0900 (Wed, 05 Jun 2013) New Revision: 41084 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=41084 Log: use attribute is more simple way for r41083 Modified files: trunk/gc.c Index: gc.c =================================================================== --- gc.c (revision 41083) +++ gc.c (revision 41084) @@ -2277,8 +2277,7 @@ ready_to_gc(rb_objspace_t *objspace) https://github.com/ruby/ruby/blob/trunk/gc.c#L2277 } #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) https://github.com/ruby/ruby/blob/trunk/gc.c#L2300 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) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/