r195310 - in /trunk: gcc/c-family/ChangeLog gcc...

jason@gcc.gnu.org jason@gcc.gnu.org
Sat Jan 19 05:25:00 GMT 2013


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



More information about the Gcc-cvs mailing list