diff options
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; } } |