aboutsummaryrefslogtreecommitdiff
path: root/libmudflap/mf-runtime.c
diff options
context:
space:
mode:
authorUlrich Weigand <weigand@informatik.uni-erlangen.de>2005-08-14 19:38:34 +0000
committerUlrich Weigand <uweigand@gcc.gnu.org>2005-08-14 19:38:34 +0000
commit22f99b8212a71f80e3521d4da05276acbcd689de (patch)
tree202dc3571b5024f7a8cfdd97d391485aae1bf2c1 /libmudflap/mf-runtime.c
parent8971094d72ac03277fefdcd65e9bb449ecb3dae0 (diff)
downloadgcc-22f99b8212a71f80e3521d4da05276acbcd689de.zip
gcc-22f99b8212a71f80e3521d4da05276acbcd689de.tar.gz
gcc-22f99b8212a71f80e3521d4da05276acbcd689de.tar.bz2
mf-runtime.c (__mf_state_1): Initialize to reentrant.
* mf-runtime.c (__mf_state_1): Initialize to reentrant. (__mf_init): Set thread state active. * mf-hooks3.c (__mf_pthread_spawner): Always set thread state active. (pthread_create wrapper): Always use thread spawner. * testsuite/libmudflap.cth/pass37-frag.c: Increase timeout. * testsuite/libmudflap.cth/pass39-frag.c: Likewise. From-SVN: r103084
Diffstat (limited to 'libmudflap/mf-runtime.c')
-rw-r--r--libmudflap/mf-runtime.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libmudflap/mf-runtime.c b/libmudflap/mf-runtime.c
index af584e7..e690165 100644
--- a/libmudflap/mf-runtime.c
+++ b/libmudflap/mf-runtime.c
@@ -178,10 +178,10 @@ int __mf_starting_p = 1;
#ifdef LIBMUDFLAPTH
#ifdef HAVE_TLS
-__thread enum __mf_state_enum __mf_state_1 = active;
+__thread enum __mf_state_enum __mf_state_1 = reentrant;
#endif
#else
-enum __mf_state_enum __mf_state_1 = active;
+enum __mf_state_enum __mf_state_1 = reentrant;
#endif
#ifdef LIBMUDFLAPTH
@@ -697,6 +697,8 @@ __mf_init ()
#endif
__mf_starting_p = 0;
+ __mf_set_state (active);
+
__mf_set_default_options ();
ov = getenv ("MUDFLAP_OPTIONS");