https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85400
--- Comment #14 from Eric Botcazou <ebotcazou at gcc dot gnu.org> --- Author: ebotcazou Date: Wed May 22 07:42:52 2019 New Revision: 271502 URL: https://gcc.gnu.org/viewcvs?rev=271502&root=gcc&view=rev Log: c-family/ Backport from mainline 2018-05-10 Eric Botcazou <ebotca...@adacore.com> PR c++/85400 * c-attribs.c (handle_visibility_attribute): Do not set no_add_attrs. cp/ Backport from mainline 2018-05-10 Eric Botcazou <ebotca...@adacore.com> PR c++/85400 * decl2.c (adjust_var_decl_tls_model): New static function. (comdat_linkage): Call it on a variable. (maybe_make_one_only): Likewise. Added: branches/gcc-8-branch/gcc/testsuite/g++.dg/tls/pr85400.C - copied unchanged from r271501, trunk/gcc/testsuite/g++.dg/tls/pr85400.C Modified: branches/gcc-8-branch/gcc/c-family/ChangeLog branches/gcc-8-branch/gcc/c-family/c-attribs.c branches/gcc-8-branch/gcc/cp/ChangeLog branches/gcc-8-branch/gcc/cp/decl2.c branches/gcc-8-branch/gcc/testsuite/ChangeLog