diff options
author | Nathan Sidwell <nathan@codesourcery.com> | 2003-07-01 09:17:52 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2003-07-01 09:17:52 +0000 |
commit | 5f2fc772a64e920386370f64d6d63ee07cbbdb85 (patch) | |
tree | 531c01fa64756756463c89f2a22ff43297319828 /gcc/unroll.c | |
parent | 5b030314afd5f84d30e79594db48bb76da28e36a (diff) | |
download | gcc-5f2fc772a64e920386370f64d6d63ee07cbbdb85.zip gcc-5f2fc772a64e920386370f64d6d63ee07cbbdb85.tar.gz gcc-5f2fc772a64e920386370f64d6d63ee07cbbdb85.tar.bz2 |
rtl.h (emit_line_note_after): Remove.
* rtl.h (emit_line_note_after): Remove.
(emit_note_copy_after, emit_note_copy): New.
* emit-rtl.c (reorder_insns_with_line_notes): Replace
emit_line_note_after with emit_note_copy_after.
(emit_insn_after_with_line_notes): Likewise.
(emit_line_note_after): Kill.
(emit_note_copy_after): New.
(emit_note_copy): New.
* function.c (emit_return_into_block): Use emit_note_copy_after.
(thread_prologue_and_epilogue_insns): Likewise.
* integrate.c (expand_inline_function): Use emit_note_copy.
(copy_insn_list): Likewise.
* unroll.c (copy_loop_body): Likewise.
* cfglayout.c (duplicate_insn_chain): Likewise.
From-SVN: r68767
Diffstat (limited to 'gcc/unroll.c')
-rw-r--r-- | gcc/unroll.c | 24 |
1 files changed, 6 insertions, 18 deletions
diff --git a/gcc/unroll.c b/gcc/unroll.c index 84ace29..b6e280d 100644 --- a/gcc/unroll.c +++ b/gcc/unroll.c @@ -2252,20 +2252,14 @@ copy_loop_body (loop, copy_start, copy_end, map, exit_label, last_iteration, the associated rtl. We do not want to share the structure in this new block. */ - if (NOTE_LINE_NUMBER (insn) > 0) - copy = emit_line_note (NOTE_SOURCE_FILE (insn), - NOTE_LINE_NUMBER (insn)); - else if (NOTE_LINE_NUMBER (insn) != NOTE_INSN_DELETED + if (NOTE_LINE_NUMBER (insn) != NOTE_INSN_DELETED && NOTE_LINE_NUMBER (insn) != NOTE_INSN_DELETED_LABEL && NOTE_LINE_NUMBER (insn) != NOTE_INSN_BASIC_BLOCK && ((NOTE_LINE_NUMBER (insn) != NOTE_INSN_LOOP_VTOP && NOTE_LINE_NUMBER (insn) != NOTE_INSN_LOOP_CONT) || (last_iteration && unroll_type != UNROLL_COMPLETELY))) - { - copy = emit_note (NOTE_LINE_NUMBER (insn)); - NOTE_DATA (copy) = NOTE_DATA (insn); - } + copy = emit_note_copy (insn); else copy = 0; break; @@ -2310,18 +2304,12 @@ copy_loop_body (loop, copy_start, copy_end, map, exit_label, last_iteration, instructions before the last insn in the loop, COPY_NOTES_FROM can be a NOTE_INSN_LOOP_CONT note if there is no VTOP note, as in a do .. while loop. */ - if (GET_CODE (insn) != NOTE) - /*NOP*/; - else if (NOTE_LINE_NUMBER (insn) > 0) - emit_line_note (NOTE_SOURCE_FILE (insn), NOTE_LINE_NUMBER (insn)); - else if (NOTE_LINE_NUMBER (insn) != NOTE_INSN_DELETED + if (GET_CODE (insn) == NOTE + && ((NOTE_LINE_NUMBER (insn) != NOTE_INSN_DELETED && NOTE_LINE_NUMBER (insn) != NOTE_INSN_BASIC_BLOCK && NOTE_LINE_NUMBER (insn) != NOTE_INSN_LOOP_VTOP - && NOTE_LINE_NUMBER (insn) != NOTE_INSN_LOOP_CONT) - { - rtx copy = emit_note (NOTE_LINE_NUMBER (insn)); - NOTE_DATA (copy) = NOTE_DATA (insn); - } + && NOTE_LINE_NUMBER (insn) != NOTE_INSN_LOOP_CONT))) + emit_note_copy (insn); } } |