https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60702

--- Comment #16 from Iain Sandoe <iains at gcc dot gnu.org> ---
(In reply to Jakub Jelinek from comment #15)
> I think the dg-require-alias is the right thing though, this is not related
> to native vs. non-native TLS, but:
>   /* If the variable is internal, or if we can't generate aliases,
>      call the local init function directly.  */
>   if (!TREE_PUBLIC (var) || !TARGET_SUPPORTS_ALIASES)
>     return get_local_tls_init_fn (DECL_SOURCE_LOCATION (var));

yeah, that's fair enough.  Perhaps an additional test can be added when there's
more time (that checks for the __init_tls calls instead of the aliased refs to
it).

Reply via email to