Commit d57c0139 by Alan Modra Committed by Alan Modra

re PR target/40473 (-mno-sched-prolog breaks function parameter debug location lists)

	PR target/40473
	* config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
	call final to emit non-scheduled prologue, instead insert at entry.

From-SVN: r152056
parent 25476781
2009-09-23 Alan Modra <amodra@bigpond.net.au>
PR target/40473
* config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
call final to emit non-scheduled prologue, instead insert at entry.
2009-09-22 Loren J. Rittle <ljrittle@acm.org>
Joseph S. Myers <joseph@codesourcery.com>
......
......@@ -19111,6 +19111,8 @@ rs6000_output_function_prologue (FILE *file,
if (! HAVE_prologue)
{
rtx prologue;
start_sequence ();
/* A NOTE_INSN_DELETED is supposed to be at the start and end of
......@@ -19130,10 +19132,14 @@ rs6000_output_function_prologue (FILE *file,
}
}
if (TARGET_DEBUG_STACK)
debug_rtx_list (get_insns (), 100);
final (get_insns (), file, FALSE);
prologue = get_insns ();
end_sequence ();
if (TARGET_DEBUG_STACK)
debug_rtx_list (prologue, 100);
emit_insn_before_noloc (prologue, BB_HEAD (ENTRY_BLOCK_PTR->next_bb),
ENTRY_BLOCK_PTR);
}
rs6000_pic_labelno++;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment