On 2025-06-02 05:29, Jeff Law wrote:


On 5/27/25 7:36 AM, Christophe Lyon wrote:
Some tests have 'dg-do link' but currently require 'tls' which is a
compile-only check.

In some configurations of arm-none-eabi, the 'tls' effective-target
can be successful although these tests fail to link with
undefined reference to `__aeabi_read_tp'

This patch as a new tls_link effective target which makes sure we can
build an executable.

gcc/testsuite/ChangeLog:

    * lib/target-supports.exp (check_effective_target_tls_link): New.
    * g++.dg/tls/pr102496-1.C: Require tls_link.
    * g++.dg/tls/pr77285-1.C: Likewise.

gcc/ChangeLog:

    * doc/sourcebuild.texi (tls_link): Add documentation.
OK

Can this change be considered for releases/gcc-15 too?
I've run r15-10570-gb0e3253dc990be with the tls.exp for g++ tool without any 
regression with and without this patch.

Kind regards,
Torbjörn

jeff


Reply via email to