* unroll.c (final_reg_note_copy): Fix previous commit.
authorJan Hubicka <jh@suse.cz>
Mon, 14 Jan 2002 23:58:20 +0000 (00:58 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Mon, 14 Jan 2002 23:58:20 +0000 (23:58 +0000)
From-SVN: r48858

gcc/ChangeLog
gcc/unroll.c

index 488986844d405131a7450f638d75ccbcebfddba2..7e26df05a802fd8953dc4a37fc705494ddfdb42f 100644 (file)
@@ -1,3 +1,7 @@
+Tue Jan 15 00:56:11 CET 2002  Jan Hubicka  <jh@suse.cz>
+
+       * unroll.c (final_reg_note_copy): Fix previous commit.
+
 2002-01-14  Kazu Hirata  <kazu@hxi.com>
 
        * config/h8300/h8300-protos.h: Remove the prototype for
index a47fdbe89589253bc88683af9d58a47baa6fb0e3..ecddc3154c94287435827ec3d034bb0937b66e24 100644 (file)
@@ -1741,11 +1741,16 @@ final_reg_note_copy (notesp, map)
            {
              rtx insn = map->insn_map[INSN_UID (XEXP (note, 0))];
 
-             /* If we failed to remap the note, something is awry.  */
+             /* If we failed to remap the note, something is awry.
+                Allow REG_LABEL as it may reference label outside
+                the unrolled loop.  */
              if (!insn)
-               abort ();
-
-             XEXP (note, 0) = insn;
+               {
+                 if (REG_NOTE_KIND (note) != REG_LABEL)
+                   abort ();
+               }
+             else
+               XEXP (note, 0) = insn;
            }
        }