This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]