This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
[PATCH] Java interpreter miscompiled due to -fnon-call-exceptions bug
- From: Andrew Haley <aph at redhat dot com>
- To: "Ulrich Weigand" <Ulrich dot Weigand at de dot ibm dot com>
- Cc: gcc-patches at gcc dot gnu dot org, java at gcc dot gnu dot org
- Date: Tue, 8 Oct 2002 17:48:17 +0100 (BST)
- Subject: [PATCH] Java interpreter miscompiled due to -fnon-call-exceptions bug
- References: <OF1BC0D54B.C36B4636-ONC1256C4C.0058BE58@de.ibm.com>
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.