aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeffrey A Law <law@cygnus.com>1999-01-30 18:18:16 +0000
committerJeff Law <law@gcc.gnu.org>1999-01-30 11:18:16 -0700
commit4b7c585f36a214eb603eba70d5fdf89ffad90c5d (patch)
tree2c0c258c51310454f4141c23f4299cd73fa60060
parent2c72b78f879cc8508e304bad0d52922d01c1bccb (diff)
downloadgcc-4b7c585f36a214eb603eba70d5fdf89ffad90c5d.zip
gcc-4b7c585f36a214eb603eba70d5fdf89ffad90c5d.tar.gz
gcc-4b7c585f36a214eb603eba70d5fdf89ffad90c5d.tar.bz2
* combine.c (distribute_notes): Handle REG_EH_REGION notes.
From-SVN: r24927
-rw-r--r--gcc/ChangeLog2
-rw-r--r--gcc/combine.c11
2 files changed, 13 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index b792d8d..029e3eb 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,7 @@
Sat Jan 30 08:27:23 1999 Jeffrey A Law (law@cygnus.com)
+ * combine.c (distribute_notes): Handle REG_EH_REGION notes.
+
* alias.c (fixed_scalar_and_varying_struct_p): Add "static" to
function definition.
(aliases_everything_p, write_dependence_p):Likewise.
diff --git a/gcc/combine.c b/gcc/combine.c
index 5fc5231..0451707 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.