This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[committed] Fix REG_EH_NOTE added to _mcount in pa.c
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 29 Sep 2009 19:09:20 -0400 (EDT)
- Subject: [committed] Fix REG_EH_NOTE added to _mcount in pa.c
This fixes PR target/41393. We now need a different note to indicate
that _mcount cannot throw or execute a non-local goto.
Tested on hppa-unknown-linux-gnu. Committed to trunk.
Dave
--
J. David Anglin dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6602)
2009-09-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
PR target/41393
* pa.c (hppa_profile_hook): Use
make_reg_eh_region_note_nothrow_nononlocal to add REG_EH_REGION note.
Index: config/pa/pa.c
===================================================================
--- config/pa/pa.c (revision 152225)
+++ config/pa/pa.c (working copy)
@@ -4361,7 +4361,7 @@
/* Indicate the _mcount call cannot throw, nor will it execute a
non-local goto. */
- add_reg_note (call_insn, REG_EH_REGION, constm1_rtx);
+ make_reg_eh_region_note_nothrow_nononlocal (call_insn);
}
/* Fetch the return address for the frame COUNT steps up from