ruby-changes:29503
From: nobu <ko1@a...>
Date: Sat, 22 Jun 2013 10:27:27 +0900 (JST)
Subject: [ruby-changes:29503] nobu:r41555 (trunk): load.c: suppress warning
nobu 2013-06-22 10:27:17 +0900 (Sat, 22 Jun 2013) New Revision: 41555 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=41555 Log: load.c: suppress warning * load.c (rb_load_internal): suppress clobbered-by-longjmp warning by gcc 4.4. Modified files: trunk/load.c Index: load.c =================================================================== --- load.c (revision 41554) +++ load.c (revision 41555) @@ -567,7 +567,7 @@ rb_load_internal(VALUE fname, int wrap) https://github.com/ruby/ruby/blob/trunk/load.c#L567 volatile VALUE self = th->top_self; volatile int loaded = FALSE; volatile int mild_compile_error; -#ifndef __GNUC__ +#if !defined __GNUC__ || (__GNUC__ == 4 && __GNUC_MINOR__ == 4) rb_thread_t *volatile th0 = th; #endif @@ -599,7 +599,7 @@ rb_load_internal(VALUE fname, int wrap) https://github.com/ruby/ruby/blob/trunk/load.c#L599 } POP_TAG(); -#ifndef __GNUC__ +#if !defined __GNUC__ || (__GNUC__ == 4 && __GNUC_MINOR__ == 4) th = th0; fname = RB_GC_GUARD(fname); #endif -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/