summaryrefslogtreecommitdiffstats
path: root/gcc/combine.c
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1999-01-30 18:18:16 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1999-01-30 18:18:16 +0000
commit1e6cb85a9115a7fdaace00a02cd0b337d5732932 (patch)
tree2c0c258c51310454f4141c23f4299cd73fa60060 /gcc/combine.c
parentfe69e4fe49fadbdae6e2df5135a7f3ad796b406a (diff)
downloadppe42-gcc-1e6cb85a9115a7fdaace00a02cd0b337d5732932.tar.gz
ppe42-gcc-1e6cb85a9115a7fdaace00a02cd0b337d5732932.zip
* combine.c (distribute_notes): Handle REG_EH_REGION notes.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24927 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/combine.c')
-rw-r--r--gcc/combine.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/combine.c b/gcc/combine.c
index 5fc5231638b..0451707a22d 100644
--- a/gcc/combine.c
+++ b/gcc/combine.c
@@ -11431,6 +11431,17 @@ distribute_notes (notes, from_insn, i3, i2, elim_i2, elim_i1)
place = i3;
break;
+ case REG_EH_REGION:
+ /* This note must remain with the call. It should not be possible
+ for both I2 and I3 to be a call. */
+ if (GET_CODE (i3) == CALL_INSN)
+ place = i3;
+ else if (i2 && GET_CODE (i2) == CALL_INSN)
+ place = i2;
+ else
+ abort ();
+ break;
+
case REG_UNUSED:
/* Any clobbers for i3 may still exist, and so we must process
REG_UNUSED notes from that insn.
OpenPOWER on IntegriCloud