[PATCH] Java interpreter miscompiled due to -fnon-call-exceptions bug

Andrew Haley aph@redhat.com
Tue Oct 8 09:47:00 GMT 2002


Ulrich Weigand writes:
 >   if (flag_non_call_exceptions && may_trap_p (insn))
 >     return true;
 > 
 > Note that insn at this point is a full insn.  However,
 > may_trap_p expects an insn *pattern* as far as I can tell;
 > when passing a full insn to may_trap_p, it will interpret
 > the expr_list holding the REG_EQUAL note as something that
 > may trap ...

Oh dear, that's my fault.  You're right, may_trap_p (PATTERN (insn))
is used everywhere else.

Thanks for finding this.

Andrew.



More information about the Java mailing list