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
This commit is contained in:
Jeffrey A Law 2001-10-08 20:24:55 +00:00 committed by Mark Mitchell
parent bbb12d768b
commit 5a2ce672ba
2 changed files with 7 additions and 6 deletions

View File

@ -1,3 +1,9 @@
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>
* cppmacro.c (_cpp_create_definition): Leave comments off.

View File

@ -746,12 +746,7 @@ optimize_sibling_and_tail_recursive_calls ()
we actually write into. */
for (insn = get_insns (); insn; insn = NEXT_INSN (insn))
{
if (GET_CODE (insn) == NOTE)
{
if (NOTE_LINE_NUMBER (insn) == NOTE_INSN_FUNCTION_BEG)
break;
}
else if (INSN_P (insn))
if (INSN_P (insn))
purge_mem_unchanging_flag (PATTERN (insn));
}
}