https://gcc.gnu.org/g:1148dad51c300c02d03690214306e1d491834811
commit r17-5535-g1148dad51c300c02d03690214306e1d491834811 Author: Stian Halseth <[email protected]> Date: Fri Oct 23 21:51:38 2026 -0600 [PATCH v2 2/2] testsuite: Skip the CFI scan in stack-layout-dynamic-1.c on sparc64 Linux [PR128091] stack-layout-dynamic-1.c checks that no cfi_def_cfa_register is emitted. On SPARC every save makes %fp the CFA register, so the scan fails whenever CFI is emitted, which sparc64 Linux now does by default. gcc/testsuite/ChangeLog: PR target/128091 * gcc.dg/stack-layout-dynamic-1.c: Do not scan for cfi_def_cfa_register on sparc64 Linux. Diff: --- gcc/testsuite/gcc.dg/stack-layout-dynamic-1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite/gcc.dg/stack-layout-dynamic-1.c b/gcc/testsuite/gcc.dg/stack-layout-dynamic-1.c index 7e59f28031a9..cefefd399781 100644 --- a/gcc/testsuite/gcc.dg/stack-layout-dynamic-1.c +++ b/gcc/testsuite/gcc.dg/stack-layout-dynamic-1.c @@ -12,4 +12,4 @@ void foo (void) __attribute__ ((aligned(32768))) char runtime_aligned_2[1024]; bar (&i, &j, &k, &l, &m, &runtime_aligned_1, &runtime_aligned_2); } -/* { dg-final { scan-assembler-not "cfi_def_cfa_register" } } */ +/* { dg-final { scan-assembler-not "cfi_def_cfa_register" { target { ! sparc64-*-linux* } } } } */
