diff options
author | fche <fche@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-07-27 19:41:20 +0000 |
---|---|---|
committer | fche <fche@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-07-27 19:41:20 +0000 |
commit | 91a2459f78b4761cb5cab27954e0561f2509cd92 (patch) | |
tree | 93246cdbeaab6c7c19194ef87570320bf827cd1c /libmudflap | |
parent | 011e6b51aaaaa628b204812a1714ada9e8092c87 (diff) | |
download | gcc-91a2459f78b4761cb5cab27954e0561f2509cd92.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85229 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libmudflap')
-rw-r--r-- | libmudflap/ChangeLog | 5 | ||||
-rw-r--r-- | libmudflap/mf-runtime.c | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/libmudflap/ChangeLog b/libmudflap/ChangeLog index 4b29756ebee..d4a0b73d1bf 100644 --- a/libmudflap/ChangeLog +++ b/libmudflap/ChangeLog @@ -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 ... diff --git a/libmudflap/mf-runtime.c b/libmudflap/mf-runtime.c index 176898830e1..e0a37a437dc 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 } |