PR c++/85400
commitcb8ba767abe007863f388bd66e0bd2e777a1d0b2
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 10 May 2018 07:36:38 +0000 (10 07:36 +0000)
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 10 May 2018 07:36:38 +0000 (10 07:36 +0000)
tree5072c928276d92ea5db82bc91219a9b1b942ed7d
parent70783a862036b1b356e1fceb08752311b8b4564d
PR c++/85400
cp/
* decl2.c (adjust_var_decl_tls_model): New static function.
(comdat_linkage): Call it on a variable.
(maybe_make_one_only): Likewise.
c-family/
* c-attribs.c (handle_visibility_attribute): Do not set no_add_attrs.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@260106 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/c-family/ChangeLog
gcc/c-family/c-attribs.c
gcc/cp/ChangeLog
gcc/cp/decl2.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/tls/pr85400.C [new file with mode: 0644]