OSDN Git Service

2004-07-27 Ulrich Weigand <weigand@informatik.uni-erlangen.de>
authorfche <fche@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 27 Jul 2004 19:41:20 +0000 (19:41 +0000)
committerfche <fche@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 27 Jul 2004 19:41:20 +0000 (19:41 +0000)
* mf-runtime.c (__mf_fini): Set mudflap_mode to mode_nop in
the statically linked case.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85229 138bc75d-0d04-0410-961f-82ee72b054a4

libmudflap/ChangeLog
libmudflap/mf-runtime.c

index 4b29756..d4a0b73 100644 (file)
@@ -1,3 +1,8 @@
+2004-07-27  Ulrich Weigand  <weigand@informatik.uni-erlangen.de>
+
+       * mf-runtime.c (__mf_fini): Set mudflap_mode to mode_nop in
+       the statically linked case.
+
 2004-07-27  Frank Ch. Eigler  <fche@redhat.com>
 
        * splay-tree.[ch]: Remove.  Merge contents into ...
 2004-07-27  Frank Ch. Eigler  <fche@redhat.com>
 
        * splay-tree.[ch]: Remove.  Merge contents into ...
index 1768988..e0a37a4 100644 (file)
@@ -778,6 +778,12 @@ void __mf_fini ()
 {
   TRACE ("__mf_fini\n");
   __mfu_report ();
 {
   TRACE ("__mf_fini\n");
   __mfu_report ();
+
+#ifndef PIC
+/* Since we didn't populate the tree for allocations in constructors
+   before __mf_init, we cannot check destructors after __mf_fini.  */
+  __mf_opts.mudflap_mode = mode_nop;
+#endif
 }
 
 
 }