testsuite: i386: Fix gcc.target/i386/pr70321.c on 32-bit Solaris/x86

Message ID ydd7cjz14xb.fsf@CeBiTec.Uni-Bielefeld.DE
State Accepted
Headers
Series testsuite: i386: Fix gcc.target/i386/pr70321.c on 32-bit Solaris/x86 |

Checks

Context Check Description
snail/gcc-patch-check success Github commit url

Commit Message

Rainer Orth Jan. 24, 2024, 9:01 a.m. UTC
  gcc.target/i386/pr70321.c FAILs on 32-bit Solaris/x86 since its
introduction in

commit 43201f2c2173894bf7c423cad6da1c21567e06c0
Author: Roger Sayle <roger@nextmovesoftware.com>
Date:   Mon May 30 21:20:09 2022 +0100

    PR target/70321: Split double word equality/inequality after STV on x86.

FAIL: gcc.target/i386/pr70321.c scan-assembler-times mov 1

The failure happens because 32-bit Solaris/x86 defaults to
-fno-omit-frame-pointer.

Fixed by specifying -fomit-frame-pointer explicitly.

Tested on i386-pc-solaris2.11 and i686-pc-linux-gnu.

Ok for trunk?

	Rainer
  

Comments

Mike Stump Feb. 2, 2024, 12:10 a.m. UTC | #1
On Jan 24, 2024, at 1:01 AM, Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> wrote:
> 
> gcc.target/i386/pr70321.c FAILs on 32-bit Solaris/x86 since its
> introduction in
> 
> commit 43201f2c2173894bf7c423cad6da1c21567e06c0
> Author: Roger Sayle <roger@nextmovesoftware.com>
> Date:   Mon May 30 21:20:09 2022 +0100
> 
>    PR target/70321: Split double word equality/inequality after STV on x86.
> 
> FAIL: gcc.target/i386/pr70321.c scan-assembler-times mov 1
> 
> The failure happens because 32-bit Solaris/x86 defaults to
> -fno-omit-frame-pointer.
> 
> Fixed by specifying -fomit-frame-pointer explicitly.
> 
> Tested on i386-pc-solaris2.11 and i686-pc-linux-gnu.
> 
> Ok for trunk?

Ok.
  

Patch

# HG changeset patch
# Parent  229bf3d228cb30f17ea645f6f4b2e8f48d2cfa75
testsuite: i386: Fix gcc.target/i386/pr70321.c on 32-bit Solaris/x86

diff --git a/gcc/testsuite/gcc.target/i386/pr70321.c b/gcc/testsuite/gcc.target/i386/pr70321.c
--- a/gcc/testsuite/gcc.target/i386/pr70321.c
+++ b/gcc/testsuite/gcc.target/i386/pr70321.c
@@ -1,5 +1,5 @@ 
 /* { dg-do compile { target ia32 } } */
-/* { dg-options "-O2" } */
+/* { dg-options "-O2 -fomit-frame-pointer" } */
 
 void foo (long long ixi)
 {