]> gcc.gnu.org Git - gcc.git/commit
Fix problematic TLS sequences for the Solaris linker
authorEric Botcazou <ebotcazou@gcc.gnu.org>
Fri, 14 Feb 2020 18:21:02 +0000 (19:21 +0100)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Fri, 14 Feb 2020 18:28:39 +0000 (19:28 +0100)
commitc35cfc834eda41cd8b08ee989b028552ad9cd6a8
treec762e3036ea42063e545e18dca92c7add41852f8
parent53073523bca574251d45bded65b2b0c183b01e5d
Fix problematic TLS sequences for the Solaris linker

This is an old thinko pertaining to the interaction between TLS
sequences and delay slot filling: the compiler knows that it cannot
put instructions with TLS relocations into delay slots with the
original Sun TLS model, but it tests TARGET_SUN_TLS in this context,
which depends only on the assembler.  So if the compiler is configured
with the GNU assembler and the Solaris linker, then TARGET_GNU_TLS is
set instead and the limitation is not enforced.

PR target/93704
* config/sparc/sparc.c (eligible_for_call_delay): Test HAVE_GNU_LD
in conjunction with TARGET_GNU_TLS in early return.
gcc/ChangeLog
gcc/config/sparc/sparc.c
This page took 0.059357 seconds and 6 git commands to generate.