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
This commit is contained in:
Ulrich Weigand 2004-07-27 19:41:20 +00:00 committed by Frank Ch. Eigler
parent 3fbd86b1a8
commit 6687a26359
2 changed files with 11 additions and 0 deletions

View 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 ...

View File

@ -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
}