pa.c (pa_output_function_epilogue): Only update last_address when a nonnote insn is found.

* config/pa/pa.c (pa_output_function_epilogue): Only update
	last_address when a nonnote insn is found.

From-SVN: r215669
This commit is contained in:
John David Anglin 2014-09-28 15:39:23 +00:00
parent 05342e105f
commit 501fcaf556
2 changed files with 11 additions and 3 deletions

View file

@ -1,3 +1,8 @@
2014-09-28 John David Anglin <danglin@gcc.gnu.org>
* config/pa/pa.c (pa_output_function_epilogue): Only update
last_address when a nonnote insn is found.
2014-09-26 Jan Hubicka <hubicka@ucw.cz>
PR ipa/60665

View file

@ -4192,9 +4192,12 @@ pa_output_function_epilogue (FILE *file, HOST_WIDE_INT size ATTRIBUTE_UNUSED)
{
last_address = extra_nop ? 4 : 0;
insn = get_last_nonnote_insn ();
last_address += INSN_ADDRESSES (INSN_UID (insn));
if (INSN_P (insn))
last_address += insn_default_length (insn);
if (insn)
{
last_address += INSN_ADDRESSES (INSN_UID (insn));
if (INSN_P (insn))
last_address += insn_default_length (insn);
}
last_address = ((last_address + FUNCTION_BOUNDARY / BITS_PER_UNIT - 1)
& ~(FUNCTION_BOUNDARY / BITS_PER_UNIT - 1));
}