From 22f99b8212a71f80e3521d4da05276acbcd689de Mon Sep 17 00:00:00 2001 From: Ulrich Weigand Date: Sun, 14 Aug 2005 19:38:34 +0000 Subject: 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 --- libmudflap/mf-runtime.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'libmudflap/mf-runtime.c') 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"); -- cgit v1.1