Commit e3947b34 by Richard Henderson Committed by Richard Henderson

re PR middle-end/23676 (ICE: "missing REG_EH_REGION note in the end of bb")

        PR 23676
        * reload1.c (reload_as_needed): Check !CALL_P before calling
        fixup_eh_region_note.
        * rtlanal.c (may_trap_p): SUBREG by itself cannot trap.

From-SVN: r103751
parent 056061d8
2005-09-01 Richard Henderson <rth@redhat.com>
PR 23676
* reload1.c (reload_as_needed): Check !CALL_P before calling
fixup_eh_region_note.
* rtlanal.c (may_trap_p): SUBREG by itself cannot trap.
2005-09-01 DJ Delorie <dj@redhat.com> 2005-09-01 DJ Delorie <dj@redhat.com>
* varasm.c (output_constant): Let the target resolve * varasm.c (output_constant): Let the target resolve
......
...@@ -3926,7 +3926,7 @@ reload_as_needed (int live_known) ...@@ -3926,7 +3926,7 @@ reload_as_needed (int live_known)
subst_reloads (insn); subst_reloads (insn);
/* Adjust the exception region notes for loads and stores. */ /* Adjust the exception region notes for loads and stores. */
if (flag_non_call_exceptions) if (flag_non_call_exceptions && !CALL_P (insn))
fixup_eh_region_note (insn, prev, next); fixup_eh_region_note (insn, prev, next);
/* If this was an ASM, make sure that all the reload insns /* If this was an ASM, make sure that all the reload insns
......
...@@ -2166,6 +2166,7 @@ may_trap_p (rtx x) ...@@ -2166,6 +2166,7 @@ may_trap_p (rtx x)
case NEG: case NEG:
case ABS: case ABS:
case SUBREG:
/* These operations don't trap even with floating point. */ /* These operations don't trap even with floating point. */
break; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment