diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-04-12 12:58:04 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-04-12 12:58:04 +0000 |
commit | be711df831c907551429345a91b1a07ff90be738 (patch) | |
tree | ce32bb815f1f5e946a52c37a6ca2ab1836363914 /marshal.c | |
parent | ccaf4229cca9fdda88b15f2f45e7747eab63ad06 (diff) |
marshal.c: remove hack for old gcc
* marshal.c (r_object0): remove hack for old gcc, no gcc 2.x any
more.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45575 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'marshal.c')
-rw-r--r-- | marshal.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -9,6 +9,10 @@ **********************************************************************/ +#if defined __GNUC__ && __GNUC__ < 3 +# error too old GCC +#endif + #include "ruby/ruby.h" #include "ruby/io.h" #include "ruby/st.h" @@ -1700,7 +1704,7 @@ r_object0(struct load_arg *arg, int *ivp, VALUE extmod) case TYPE_ARRAY: { - volatile long len = r_long(arg); /* gcc 2.7.2.3 -O2 bug?? */ + long len = r_long(arg); v = rb_ary_new2(len); v = r_entry(v, arg); @@ -1739,7 +1743,7 @@ r_object0(struct load_arg *arg, int *ivp, VALUE extmod) case TYPE_STRUCT: { VALUE mem, values; - volatile long i; /* gcc 2.7.2.3 -O2 bug?? */ + long i; ID slot; st_index_t idx = r_prepare(arg); VALUE klass = path2class(r_unique(arg)); |