On Tue, 7 Jul 2026, Christophe Lyon wrote:
> From: Christophe Lyon <[email protected]>
>
> This patch applies cleanly to gcc-15, OK to backport?
OK
> Thanks,
>
> Christophe
>
>
> ---
>
> Since this test is a 'dg-do run', it requires tls_runtime rather than
> just tls.
>
> This makes the test UNSUPPORTED on targets such as arm-non-eabi,
> instead of FAIL/UNRESOLVED because __aeabi_read_tp is not provided
> (e.g. when GCC is configured with --enable-threads=no.
>
> gcc/testsuite/ChangeLog:
>
> * g++.dg/cpp2a/decomp2.C: Require tls_runtime.
>
> (cherry picked from commit dd1ee31540bd3eaca5441dc815ea9284bcc09af3)
> ---
> gcc/testsuite/g++.dg/cpp2a/decomp2.C | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/gcc/testsuite/g++.dg/cpp2a/decomp2.C
> b/gcc/testsuite/g++.dg/cpp2a/decomp2.C
> index c2bfe46976d..d13f4243045 100644
> --- a/gcc/testsuite/g++.dg/cpp2a/decomp2.C
> +++ b/gcc/testsuite/g++.dg/cpp2a/decomp2.C
> @@ -1,7 +1,7 @@
> // P1091R3
> // { dg-do run { target c++11 } }
> // { dg-options "" }
> -// { dg-require-effective-target tls }
> +// { dg-require-effective-target tls_runtime }
> // { dg-add-options tls }
>
> namespace std {
>
--
Richard Biener <[email protected]>
SUSE Software Solutions Germany GmbH,
Frankenstrasse 146, 90461 Nuernberg, Germany;
GF: Jochen Jaser, Andrew McDonald; (HRB 36809, AG Nuernberg)