Commit 5a2ce672 by Jeffrey A Law Committed by Mark Mitchell

sibcall.c (optimize_sibling_and_tail_recursive_calls): Call…

sibcall.c (optimize_sibling_and_tail_recursive_calls): Call purge_mem_unchanging_flag on all instructions...

	* sibcall.c (optimize_sibling_and_tail_recursive_calls): Call
	purge_mem_unchanging_flag on all instructions, not just on those
	before NOTE_INSN_FUNCTION_BEG.

From-SVN: r46091
parent bbb12d76
2001-10-08 Jeffrey A Law <law@cygnus.com>
* sibcall.c (optimize_sibling_and_tail_recursive_calls): Call
purge_mem_unchanging_flag on all instructions, not just on those
before NOTE_INSN_FUNCTION_BEG.
2001-10-08 Neil Booth <neil@daikokuya.demon.co.uk> 2001-10-08 Neil Booth <neil@daikokuya.demon.co.uk>
* cppmacro.c (_cpp_create_definition): Leave comments off. * cppmacro.c (_cpp_create_definition): Leave comments off.
......
...@@ -746,12 +746,7 @@ optimize_sibling_and_tail_recursive_calls () ...@@ -746,12 +746,7 @@ optimize_sibling_and_tail_recursive_calls ()
we actually write into. */ we actually write into. */
for (insn = get_insns (); insn; insn = NEXT_INSN (insn)) for (insn = get_insns (); insn; insn = NEXT_INSN (insn))
{ {
if (GET_CODE (insn) == NOTE) if (INSN_P (insn))
{
if (NOTE_LINE_NUMBER (insn) == NOTE_INSN_FUNCTION_BEG)
break;
}
else if (INSN_P (insn))
purge_mem_unchanging_flag (PATTERN (insn)); purge_mem_unchanging_flag (PATTERN (insn));
} }
} }
......
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