emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
authorEric Botcazou <ebotcazou@adacore.com>
Mon, 11 May 2015 22:12:46 +0000 (22:12 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Mon, 11 May 2015 22:12:46 +0000 (22:12 +0000)
* emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
(emit_pattern_before_setloc): Likewise.

From-SVN: r223020

gcc/ChangeLog
gcc/emit-rtl.c

index 610389faebd25019702f79b68d2c250bffff9191..ed176bdc2568ecf06151cb6b06ef7a63169e3f98 100644 (file)
@@ -1,3 +1,8 @@
+2015-05-11  Eric Botcazou  <ebotcazou@adacore.com>
+
+       * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
+       (emit_pattern_before_setloc): Likewise.
+
 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
 
        * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
index d5e09c26f0446f77c96f9f0cc6d77eea678d8ae4..4d3323655989bec3a2dbd1e03bc73ae8e656837c 100644 (file)
@@ -4676,7 +4676,9 @@ emit_pattern_after_setloc (rtx pattern, rtx uncast_after, int loc,
   after = NEXT_INSN (after);
   while (1)
     {
-      if (active_insn_p (after) && !INSN_LOCATION (after))
+      if (active_insn_p (after)
+         && !JUMP_TABLE_DATA_P (after) /* FIXME */
+         && !INSN_LOCATION (after))
        INSN_LOCATION (after) = loc;
       if (after == last)
        break;
@@ -4787,7 +4789,9 @@ emit_pattern_before_setloc (rtx pattern, rtx uncast_before, int loc, bool insnp,
     first = NEXT_INSN (first);
   while (1)
     {
-      if (active_insn_p (first) && !INSN_LOCATION (first))
+      if (active_insn_p (first)
+         && !JUMP_TABLE_DATA_P (first) /* FIXME */
+         && !INSN_LOCATION (first))
        INSN_LOCATION (first) = loc;
       if (first == last)
        break;