ruby-changes:41393
From: nobu <ko1@a...>
Date: Fri, 8 Jan 2016 19:52:09 +0900 (JST)
Subject: [ruby-changes:41393] nobu:r53465 (trunk): iseq.c: volatile only on gcc4.8
nobu 2016-01-08 19:52:24 +0900 (Fri, 08 Jan 2016) New Revision: 53465 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=53465 Log: iseq.c: volatile only on gcc4.8 * iseq.c (rb_iseq_compile_with_option): no volatile on gcc other than 4.8. Modified files: trunk/iseq.c Index: iseq.c =================================================================== --- iseq.c (revision 53464) +++ iseq.c (revision 53465) @@ -606,10 +606,10 @@ rb_iseq_compile_with_option(VALUE src, V https://github.com/ruby/ruby/blob/trunk/iseq.c#L606 const rb_iseq_t *const parent = base_block ? base_block->iseq : NULL; rb_compile_option_t option; const enum iseq_type type = parent ? ISEQ_TYPE_EVAL : ISEQ_TYPE_TOP; -#if defined(__GNUC__) && __GNUC__ == 4 && __GNUC_MINOR__ == 8 +#if !defined(__GNUC__) || (__GNUC__ == 4 && __GNUC_MINOR__ == 8) # define INITIALIZED volatile /* suppress warnings by gcc 4.8 */ #else -# define INITIALIZED volatile +# define INITIALIZED /* volatile */ #endif /* safe results first */ const INITIALIZED int ln = (make_compile_option(&option, opt), NUM2INT(line)); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/