mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
iseq.c: volatile only on gcc4.8
* iseq.c (rb_iseq_compile_with_option): no volatile on gcc other than 4.8. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53465 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
3ccafdb027
commit
92f33ef216
1 changed files with 2 additions and 2 deletions
4
iseq.c
4
iseq.c
|
@ -606,10 +606,10 @@ rb_iseq_compile_with_option(VALUE src, VALUE file, VALUE absolute_path, VALUE li
|
||||||
const rb_iseq_t *const parent = base_block ? base_block->iseq : NULL;
|
const rb_iseq_t *const parent = base_block ? base_block->iseq : NULL;
|
||||||
rb_compile_option_t option;
|
rb_compile_option_t option;
|
||||||
const enum iseq_type type = parent ? ISEQ_TYPE_EVAL : ISEQ_TYPE_TOP;
|
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 */
|
# define INITIALIZED volatile /* suppress warnings by gcc 4.8 */
|
||||||
#else
|
#else
|
||||||
# define INITIALIZED volatile
|
# define INITIALIZED /* volatile */
|
||||||
#endif
|
#endif
|
||||||
/* safe results first */
|
/* safe results first */
|
||||||
const INITIALIZED int ln = (make_compile_option(&option, opt), NUM2INT(line));
|
const INITIALIZED int ln = (make_compile_option(&option, opt), NUM2INT(line));
|
||||||
|
|
Loading…
Reference in a new issue