diff options
author | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-01-19 05:25:25 +0000 |
---|---|---|
committer | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-01-19 05:25:25 +0000 |
commit | 1c4973d7708d34b68e9ad7d46cd1623ce1609734 (patch) | |
tree | 6f07da7f6452368c46a7fccdd8d5a008127dbe83 /gcc/c-family/c.opt | |
parent | b7fd3d269ebd953bb44b2a46e0a2a30b12b0a505 (diff) | |
download | gcc-1c4973d7708d34b68e9ad7d46cd1623ce1609734.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@195310 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-family/c.opt')
-rw-r--r-- | gcc/c-family/c.opt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/c-family/c.opt b/gcc/c-family/c.opt index 187f3befc18..10ae84dbb24 100644 --- a/gcc/c-family/c.opt +++ b/gcc/c-family/c.opt @@ -913,6 +913,9 @@ finput-charset= C ObjC C++ ObjC++ Joined RejectNegative -finput-charset=<cset> Specify the default character set for source files +fextern-tls-init +C++ ObjC++ Var(flag_extern_tls_init) Init(-1) +Support dynamic initialization of thread-local variables in a different translation unit fexternal-templates C++ ObjC++ Ignore Warn(switch %qs is no longer supported) |