diff options
author | Jan Hubicka <jh@suse.cz> | 2002-01-15 00:58:20 +0100 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2002-01-14 23:58:20 +0000 |
commit | 6a7b4ca6864401146c68373fabe753ac784507e8 (patch) | |
tree | 4bf0f2ded5f6f59e0144d4d939eebf43c101b7fe /gcc/unroll.c | |
parent | e7afe229578ce66db3edf26702e2cadd3c481993 (diff) | |
download | gcc-6a7b4ca6864401146c68373fabe753ac784507e8.tar.gz |
* unroll.c (final_reg_note_copy): Fix previous commit.
From-SVN: r48858
Diffstat (limited to 'gcc/unroll.c')
-rw-r--r-- | gcc/unroll.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/gcc/unroll.c b/gcc/unroll.c index a47fdbe8958..ecddc3154c9 100644 --- a/gcc/unroll.c +++ b/gcc/unroll.c @@ -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; } } |