Commit 501fcaf5 by John David Anglin

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
parent 05342e10
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> 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
PR ipa/60665 PR ipa/60665
...@@ -4192,9 +4192,12 @@ pa_output_function_epilogue (FILE *file, HOST_WIDE_INT size ATTRIBUTE_UNUSED) ...@@ -4192,9 +4192,12 @@ pa_output_function_epilogue (FILE *file, HOST_WIDE_INT size ATTRIBUTE_UNUSED)
{ {
last_address = extra_nop ? 4 : 0; last_address = extra_nop ? 4 : 0;
insn = get_last_nonnote_insn (); insn = get_last_nonnote_insn ();
last_address += INSN_ADDRESSES (INSN_UID (insn)); if (insn)
if (INSN_P (insn)) {
last_address += insn_default_length (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) last_address = ((last_address + FUNCTION_BOUNDARY / BITS_PER_UNIT - 1)
& ~(FUNCTION_BOUNDARY / BITS_PER_UNIT - 1)); & ~(FUNCTION_BOUNDARY / BITS_PER_UNIT - 1));
} }
......
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