------- Comment #3 from howarth at nitro dot med dot uc dot edu  2010-03-31 
14:53 -------
Does this change applied to libmudflap (which we don't build on darwin) provide
a template for what we might need to do?

Author: jiez
Date: Fri Jan 23 04:58:03 2009
New Revision: 143583

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=143583
Log:
        libmudflap/
        * mf-impl.h (__mf_get_state, __mf_set_state): Don't use
        __thread when TLS support is emulated.
        * mf-hooks3.c (__mf_get_state, __mf_set_state): Likewise.
        * mf-runtime.c (__mf_state_1): Likewise.
        * configure.ac: Use GCC_CHECK_EMUTLS.
        * configure: Regenerate.
        * config.h.in: Regenerate.

        config/
        * tls.m4 (GCC_CHECK_EMUTLS): Define.

Modified:
    trunk/config/ChangeLog
    trunk/config/tls.m4
    trunk/libmudflap/ChangeLog
    trunk/libmudflap/config.h.in
    trunk/libmudflap/configure
    trunk/libmudflap/configure.ac
    trunk/libmudflap/mf-hooks3.c
    trunk/libmudflap/mf-impl.h
    trunk/libmudflap/mf-runtime.c

I noticed they they are opting out of using __thread in a particular case for
emulated TLS. Perhaps this is another instance requiring a similar change. This
was proposed in...

http://gcc.gnu.org/ml/gcc-patches/2009-01/msg00406.html

and discussed in the thread leading up to that post (which terminates the
thread).


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43602

Reply via email to