[backport,gcc-15] testsuite: g++.dg/cpp2a/decomp2.C requires tls_runtime

Message ID 20260707113018.2372570-1-christophe.lyon@arm.com
State New
Headers
Series [backport,gcc-15] testsuite: g++.dg/cpp2a/decomp2.C requires tls_runtime |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_gcc_build--master-arm fail Patch failed to apply
linaro-tcwg-bot/tcwg_gcc_build--master-aarch64 fail Patch failed to apply
linaro-tcwg-bot/tcwg_simplebootstrap_build--master-arm-bootstrap fail Patch failed to apply

Commit Message

Christophe Lyon July 7, 2026, 11:30 a.m. UTC
  From: Christophe Lyon <christophe.lyon@linaro.org>

This patch applies cleanly to gcc-15, OK to backport?

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(-)
  

Comments

Richard Biener July 7, 2026, 11:58 a.m. UTC | #1
On Tue, 7 Jul 2026, Christophe Lyon wrote:

> From: Christophe Lyon <christophe.lyon@linaro.org>
> 
> 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 {
>
  

Patch

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 {