Trunk が compile error します


#1

nagachika e$B$H?=$7$^$9!#e(B

e$B8=:_e(B(e$B%j%S%8%g%se(B: 22255)trunk e$B$N%=!<%9%D%j!<$re(B Mac OS X
e$B$G%3%s%Q%$%k$7$h$&$He(B
e$B$9$k$H%3%s%Q%$%k%(%i!<$K$J$j$^$9!#e(B
e$B;HMQ$7$?e(B gcc e$B$N%P!<%8%g%s$Oe(B 4.0.1 e$B$G$9!#e(B

compile.c e$B$r0J2<$N$h$&$K=$@5$7$F%3%s%Q%$%k$G$-$^$7$?!#e(B
e$B$h$m$7$/$*4j$$$7$^$9!#e(B

Index: compile.c

compile.c (e$B%j%S%8%g%se(B 22255)
+++ compile.c (e$B:n6H%3%T!<e(B)
@@ -295,7 +295,7 @@
#define INIT_ANCHOR(name)
(name##body_.last = &name##body_.anchor, name = &name##body_)

-#define hide_obj(obj) (void)(OBJ_FREEZE(obj), RBASIC(obj)->klass = 0)
+#define hide_obj(obj) do {OBJ_FREEZE(obj); RBASIC(obj)->klass = 0;}
while (0)

#include optinsn.inc
#if OPT_INSTRUCTIONS_UNIFICATION
@@ -1978,7 +1978,7 @@
dump_disasm_list((LINK_ELEMENT *)iobj);
dump_disasm_list((LINK_ELEMENT *)lobj);
printf("\n-- %d, %d\n", lobj->sc_state, nstate);

  •           rb_compile_error(RSTRING_PTR(iseq->filename), 
    

iobj->lineno,

  •           rb_compile_error(RSTRING_PTR(iseq->filename), 
    

iobj->line_no,
insn_set_sc_state error\n);
return 0;
}