aboutsummaryrefslogtreecommitdiff
path: root/gcc/integrate.c
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@codesourcery.com>2003-07-01 09:17:52 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2003-07-01 09:17:52 +0000
commit5f2fc772a64e920386370f64d6d63ee07cbbdb85 (patch)
tree531c01fa64756756463c89f2a22ff43297319828 /gcc/integrate.c
parent5b030314afd5f84d30e79594db48bb76da28e36a (diff)
downloadgcc-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/integrate.c')
-rw-r--r--gcc/integrate.c20
1 files changed, 9 insertions, 11 deletions
diff --git a/gcc/integrate.c b/gcc/integrate.c
index ab4af18..622c1ab 100644
--- a/gcc/integrate.c
+++ b/gcc/integrate.c
@@ -924,8 +924,8 @@ expand_inline_function (fndecl, parms, target, ignore, type,
if (GET_CODE (parm_insns) == NOTE
&& NOTE_LINE_NUMBER (parm_insns) > 0)
{
- rtx note = emit_line_note (NOTE_SOURCE_FILE (parm_insns),
- NOTE_LINE_NUMBER (parm_insns));
+ rtx note = emit_note_copy (parm_insns);
+
if (note)
RTX_INTEGRATED_P (note) = 1;
}
@@ -1682,18 +1682,16 @@ copy_insn_list (insns, map, static_chain_value)
NOTE_INSN_DELETED notes aren't useful. */
- 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_FUNCTION_END
+ if (NOTE_LINE_NUMBER (insn) != NOTE_INSN_FUNCTION_END
&& NOTE_LINE_NUMBER (insn) != NOTE_INSN_FUNCTION_BEG
&& NOTE_LINE_NUMBER (insn) != NOTE_INSN_DELETED)
{
- copy = emit_note (NOTE_LINE_NUMBER (insn));
- NOTE_DATA (copy) = NOTE_DATA (insn);
- if ((NOTE_LINE_NUMBER (copy) == NOTE_INSN_BLOCK_BEG
- || NOTE_LINE_NUMBER (copy) == NOTE_INSN_BLOCK_END)
- && NOTE_BLOCK (insn))
+ copy = emit_note_copy (insn);
+ if (!copy)
+ /*Copied a line note, but line numbering is off*/;
+ else if ((NOTE_LINE_NUMBER (copy) == NOTE_INSN_BLOCK_BEG
+ || NOTE_LINE_NUMBER (copy) == NOTE_INSN_BLOCK_END)
+ && NOTE_BLOCK (insn))
{
tree *mapped_block_p;