OK.
On Wed, May 9, 2018 at 6:05 AM, Eric Botcazou <ebotca...@adacore.com> wrote: >> So it isn't clear to me if a cxx_make_decl_one_only is the way to go. Maybe >> doing the recalculation in comdat_linkage and maybe_make_one_only only >> would be sufficient. > > Patch to that effect attached, tested on x86-64/Linux, OK for mainline? > > > 2018-05-09 Eric Botcazou <ebotca...@adacore.com> > > cp/ > 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. > > c-family/ > * c-attribs.c (handle_visibility_attribute): Do not set no_add_attrs. > > -- > Eric Botcazou