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



--- Comment #11 from Jason Merrill <jason at gcc dot gnu.org> 2013-01-19 
05:25:32 UTC ---

Author: jason

Date: Sat Jan 19 05:25:25 2013

New Revision: 195310



URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=195310

Log:

    PR target/54908

c-family/

    * c.opt (-fextern-tls-init): New.

    * c-opts.c (c_common_post_options): Handle it.

cp/

    * decl2.c (get_local_tls_init_fn): New.

    (get_tls_init_fn): Handle flag_extern_tls_init.  Don't bother

    with aliases for internal variables.  Don't use weakrefs if

    the variable needs destruction.

    (generate_tls_wrapper): Mark the wrapper as const if no

    initialization is needed.

    (handle_tls_init): Don't require aliases.



Modified:

    trunk/gcc/c-family/ChangeLog

    trunk/gcc/c-family/c-opts.c

    trunk/gcc/c-family/c.opt

    trunk/gcc/cp/ChangeLog

    trunk/gcc/cp/decl2.c

    trunk/gcc/doc/invoke.texi

    trunk/gcc/testsuite/g++.dg/gomp/tls-wrap3.C

    trunk/gcc/testsuite/g++.dg/tls/thread_local-wrap3.C

    trunk/libgomp/testsuite/libgomp.c++/pr24455.C

Reply via email to