From: John David Anglin Date: Sun, 28 Sep 2014 15:39:23 +0000 (+0000) Subject: pa.c (pa_output_function_epilogue): Only update last_address when a nonnote insn... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=501fcaf556523b9c582e8b907ba7ea0fbc765e6d;p=gcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2c416972b0f..8628256afb8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2014-09-28 John David Anglin + + * config/pa/pa.c (pa_output_function_epilogue): Only update + last_address when a nonnote insn is found. + 2014-09-26 Jan Hubicka PR ipa/60665 diff --git a/gcc/config/pa/pa.c b/gcc/config/pa/pa.c index 20f2ef662d3..59755f28da5 100644 --- a/gcc/config/pa/pa.c +++ b/gcc/config/pa/pa.c @@ -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)); }