From: Rainer Orth Date: Tue, 2 Sep 2025 11:19:00 +0000 (+0200) Subject: testsuite: i386: Fix gcc.target/i386/memset-strategy-1[03].c on Solaris/x86 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cfc9a42e8b533cad39ea9e1c4d5a06d4ba82be48;p=thirdparty%2Fgcc.git testsuite: i386: Fix gcc.target/i386/memset-strategy-1[03].c on Solaris/x86 The new gcc.target/i386/memset-strategy-1[03].c tests FAIL on Solaris/x86: FAIL: gcc.target/i386/memset-strategy-10.c check-function-bodies foo FAIL: gcc.target/i386/memset-strategy-13.c check-function-bodies foo The issue is the same as several times previously: they need to be compiled with -fasynchronous-unwind-tables -fdwarf2-cfi-asm, which this patch does. Tested on i386-pc-solaris2.11 (as and gas) and x86_64-pc-linux-gnu. 2025-09-01 Rainer Orth gcc/testsuite: * gcc.target/i386/memset-strategy-10.c (dg-options): Add -fasynchronous-unwind-tables -fdwarf2-cfi-asm. * gcc.target/i386/memset-strategy-13.c: Likewise. --- diff --git a/gcc/testsuite/gcc.target/i386/memset-strategy-10.c b/gcc/testsuite/gcc.target/i386/memset-strategy-10.c index d6f2f4ed7ff..b4a93a7ceec 100644 --- a/gcc/testsuite/gcc.target/i386/memset-strategy-10.c +++ b/gcc/testsuite/gcc.target/i386/memset-strategy-10.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-Os -march=x86-64 -mstringop-strategy=vector_loop" } */ +/* { dg-options "-Os -march=x86-64 -mstringop-strategy=vector_loop -fasynchronous-unwind-tables -fdwarf2-cfi-asm" } */ /* Keep labels and directives ('.cfi_startproc', '.cfi_endproc'). */ /* { dg-final { check-function-bodies "**" "" "" { target { ! ia32 } } {^\t?\.} } } */ diff --git a/gcc/testsuite/gcc.target/i386/memset-strategy-13.c b/gcc/testsuite/gcc.target/i386/memset-strategy-13.c index cc2129f60eb..be676101793 100644 --- a/gcc/testsuite/gcc.target/i386/memset-strategy-13.c +++ b/gcc/testsuite/gcc.target/i386/memset-strategy-13.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-Os -mno-sse -mstringop-strategy=unrolled_loop" } */ +/* { dg-options "-Os -mno-sse -mstringop-strategy=unrolled_loop -fasynchronous-unwind-tables -fdwarf2-cfi-asm" } */ /* Keep labels and directives ('.cfi_startproc', '.cfi_endproc'). */ /* { dg-final { check-function-bodies "**" "" "" { target { ! ia32 } } {^\t?\.} } } */