VxWorks kernel mode doesn't support thumb code, so the test fails. Require thumb2 support.
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 -- Alexandre Oliva, happy hacker https://blog.lx.oliva.nom.br/ Free Software Activist FSFLA co-founder GNU Toolchain Engineer More tolerance and less prejudice are key for inclusion and diversity. Excluding neuro-others for not behaving ""normal"" is *not* inclusive!