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]

[tree-ssa libmudflap] reporting reentrancy fix


Hi -

I'm committing this patch, whose absence triggers a libmudflap
test failure intermittently.

 2003-05-23  Frank Ch. Eigler  <fche@redhat.com>
 
 	* mf-runtime.c (__mf_sigusr1_handle): Call unlocked variant of
 	__mf_report, asserting reentrant calling context.

Index: mf-runtime.c
===================================================================
RCS file: /cvs/gcc/gcc/libmudflap/Attic/mf-runtime.c,v
retrieving revision 1.1.2.37
diff -u -p -r1.1.2.37 mf-runtime.c
--- mf-runtime.c	20 May 2003 19:09:47 -0000	1.1.2.37
+++ mf-runtime.c	23 May 2003 21:25:37 -0000
@@ -2272,7 +2272,8 @@ __mf_sigusr1_respond ()
   if (__mf_sigusr1_received > __mf_sigusr1_handled)
     {
       __mf_sigusr1_handled ++;
-      __mf_report ();
+      assert (__mf_state == reentrant);
+      __mfu_report ();
       handler_installed = 0; /* We may need to re-enable signal; this might be a SysV library. */
     }
 }


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