diff options
author | uweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-08-14 19:38:34 +0000 |
---|---|---|
committer | uweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-08-14 19:38:34 +0000 |
commit | 55e575c08fe16651b986fb3dbb03441d3b638ffc (patch) | |
tree | 202dc3571b5024f7a8cfdd97d391485aae1bf2c1 /libmudflap/mf-runtime.c | |
parent | ff77282cabdf300f9c85a8e559ea42b58de9fef2 (diff) | |
download | gcc-55e575c08fe16651b986fb3dbb03441d3b638ffc.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@103084 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libmudflap/mf-runtime.c')
-rw-r--r-- | libmudflap/mf-runtime.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libmudflap/mf-runtime.c b/libmudflap/mf-runtime.c index af584e773d9..e6901650975 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"); |