testsuite: i386: Disable .eh_frame in gcc.target/i386/auto-init-5.c etc.
Checks
Commit Message
The gcc.target/i386/auto-init-5.c and gcc.target/i386/auto-init-6.c
tests FAIL on 64-bit Solaris/x86 with the native assembler:
FAIL: gcc.target/i386/auto-init-5.c scan-assembler-times \\\\.long\\t0 14
FAIL: gcc.target/i386/auto-init-6.c scan-assembler-times long\\t0 8
/bin/as doesn't fully support the CFI directives, so the .eh_frame
sections are emitted directly and contain .long. Since .eh_frame
doesn't matter for those tests, this patch disables its generation in
the first place.
Tested on i386-pc-solaris2.11 (as and gas) and i686-pc-linux-gnu.
Ok for trunk?
Rainer
Comments
On Wed, Jan 31, 2024 at 01:50:33PM +0100, Rainer Orth wrote:
> The gcc.target/i386/auto-init-5.c and gcc.target/i386/auto-init-6.c
> tests FAIL on 64-bit Solaris/x86 with the native assembler:
>
> FAIL: gcc.target/i386/auto-init-5.c scan-assembler-times \\\\.long\\t0 14
> FAIL: gcc.target/i386/auto-init-6.c scan-assembler-times long\\t0 8
>
> /bin/as doesn't fully support the CFI directives, so the .eh_frame
> sections are emitted directly and contain .long. Since .eh_frame
> doesn't matter for those tests, this patch disables its generation in
> the first place.
>
> Tested on i386-pc-solaris2.11 (as and gas) and i686-pc-linux-gnu.
>
> Ok for trunk?
>
> Rainer
>
> --
> -----------------------------------------------------------------------------
> Rainer Orth, Center for Biotechnology, Bielefeld University
>
>
> 2024-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
>
> gcc/testsuite:
> * gcc.target/i386/auto-init-5.c: Add
> -fno-asynchronous-unwind-tables to dg-options.
> * gcc.target/i386/auto-init-6.c: Likewise.
LGTM.
Jakub
# HG changeset patch
# Parent 5486f016175658d0c7c2de48c893e9fbd68d3493
testsuite: i386: Disable .eh_frame in gcc.target/i386/auto-init-5.c etc.
@@ -1,6 +1,6 @@
/* Verify zero initialization for complex type automatic variables. */
/* { dg-do compile } */
-/* { dg-options "-ftrivial-auto-var-init=zero" } */
+/* { dg-options "-ftrivial-auto-var-init=zero -fno-asynchronous-unwind-tables" } */
_Complex long double result;
@@ -2,7 +2,7 @@
/* Note, _Complex long double is initialized to zeroes due to the current
implemenation limitation. */
/* { dg-do compile } */
-/* { dg-options "-ftrivial-auto-var-init=pattern -march=x86-64 -mtune=generic -msse" } */
+/* { dg-options "-ftrivial-auto-var-init=pattern -march=x86-64 -mtune=generic -msse -fno-asynchronous-unwind-tables" } */
_Complex long double result;