re PR c++/85400 (invalid Local Dynamic TLS relaxation for symbol defined in method)
authorEric Botcazou <ebotcazou@adacore.com>
Thu, 10 May 2018 07:36:38 +0000 (07:36 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Thu, 10 May 2018 07:36:38 +0000 (07:36 +0000)
commit86c12f7629b43cbc259d8bbcb1875fff1f8e6a4f
tree5072c928276d92ea5db82bc91219a9b1b942ed7d
parent09dd57a3a4c2e71a972257587f1c3944a51d4846
re PR c++/85400 (invalid Local Dynamic TLS relaxation for symbol defined in method)

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.

From-SVN: r260106
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]