aboutsummaryrefslogtreecommitdiff
path: root/libmudflap/mf-runtime.c
diff options
context:
space:
mode:
authorUlrich Weigand <weigand@informatik.uni-erlangen.de>2004-07-27 19:41:20 +0000
committerFrank Ch. Eigler <fche@gcc.gnu.org>2004-07-27 19:41:20 +0000
commit6687a26359e7d9f65119e128e8eba3d03bc608fc (patch)
tree93246cdbeaab6c7c19194ef87570320bf827cd1c /libmudflap/mf-runtime.c
parent3fbd86b1a8f955095a30129300bf55d12195b392 (diff)
downloadgcc-6687a26359e7d9f65119e128e8eba3d03bc608fc.zip
gcc-6687a26359e7d9f65119e128e8eba3d03bc608fc.tar.gz
gcc-6687a26359e7d9f65119e128e8eba3d03bc608fc.tar.bz2
mf-runtime.c (__mf_fini): Set mudflap_mode to mode_nop in the statically linked case.
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. From-SVN: r85229
Diffstat (limited to 'libmudflap/mf-runtime.c')
-rw-r--r--libmudflap/mf-runtime.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libmudflap/mf-runtime.c b/libmudflap/mf-runtime.c
index 1768988..e0a37a4 100644
--- a/libmudflap/mf-runtime.c
+++ b/libmudflap/mf-runtime.c
@@ -778,6 +778,12 @@ void __mf_fini ()
{
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
}