summaryrefslogtreecommitdiff
path: root/gcc/unroll.c
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2002-01-14 23:58:20 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2002-01-14 23:58:20 +0000
commitd1d1356734f33519cab42178d6ec696d7e3cf055 (patch)
tree4bf0f2ded5f6f59e0144d4d939eebf43c101b7fe /gcc/unroll.c
parent651673c26671b23ff40b4ee35b488a8de6766b00 (diff)
downloadgcc-d1d1356734f33519cab42178d6ec696d7e3cf055.tar.gz
* unroll.c (final_reg_note_copy): Fix previous commit.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@48858 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/unroll.c')
-rw-r--r--gcc/unroll.c13
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;
}
}