On 08/06/2025 14:15, Alexandre Oliva wrote:
> 
> VxWorks kernel mode doesn't support thumb code, so the test fails.
> Require thumb2 support.

You already have -march=armv7, so that implies any thumb code will be thumb2.  
So this doesn't really make sense as this is a compile-only test.  Furthermore, 
this will disable the test entirely if generating Arm code.  Is that really 
what you want?

> 
> Tested with arm-vx7r2 on gcc-14, where this came up, and with arm-eabi
> on trunk.  Absent objections, I'm going to install this as obvious in
> the next few days.
> 
> 
> for  gcc/testsuite/ChangeLog
> 
>       * g++.target/arm/pr120424.C: Require thumb2 support.
> ---
>  gcc/testsuite/g++.target/arm/pr120424.C |    1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/gcc/testsuite/g++.target/arm/pr120424.C 
> b/gcc/testsuite/g++.target/arm/pr120424.C
> index 4d0e49013c04a..620089ab56225 100644
> --- a/gcc/testsuite/g++.target/arm/pr120424.C
> +++ b/gcc/testsuite/g++.target/arm/pr120424.C
> @@ -1,4 +1,5 @@
>  /* { dg-do compile } */
> +/* { dg-require-effective-target arm_thumb2_ok } */
>  /* { dg-options "-march=armv7 -O2 -fstack-clash-protection 
> -fnon-call-exceptions" } */
>  /* { dg-final { scan-assembler-not {#-8} } } */
>  /* LRA register elimination gets confused when register spilling
> 
> 

Reply via email to