From 501fcaf556523b9c582e8b907ba7ea0fbc765e6d Mon Sep 17 00:00:00 2001 From: John David Anglin Date: Sun, 28 Sep 2014 15:39:23 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/config/pa/pa.c | 9 ++++++--- 2 files changed, 11 insertions(+), 3 deletions(-) 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)); } -- 2.30.2