diff options
author | Alexandre Oliva <oliva@adacore.com> | 2021-04-28 14:07:43 -0300 |
---|---|---|
committer | Alexandre Oliva <oliva@gnu.org> | 2021-04-28 14:08:48 -0300 |
commit | da4a0817beb506bc1c05d85e783ba6ffd079a194 (patch) | |
tree | 1c1918d0a1afda8d6f6095453f3aefb58961e4d0 | |
parent | 16683cefc636636ba6fed23fe0de89ed19bc7876 (diff) | |
download | gcc-da4a0817beb506bc1c05d85e783ba6ffd079a194.zip gcc-da4a0817beb506bc1c05d85e783ba6ffd079a194.tar.gz gcc-da4a0817beb506bc1c05d85e783ba6ffd079a194.tar.bz2 |
omit frame pointer in pr89676
This i386 test expects only two movl instructions.
In configurations that --enable-frame-pointer, -O2 won't implicitly
enable -fomit-frame-pointer, so we end up with a third movl to set up
the frame pointer.
This patch enables -fomit-frame-pointer explicitly, so that the result
no longer depends on that configuration option.
for gcc/testsuite/ChangeLog
* gcc.target/i386/pr89676.c: Add -fomit-frame-pointer.
-rw-r--r-- | gcc/testsuite/gcc.target/i386/pr89676.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/testsuite/gcc.target/i386/pr89676.c b/gcc/testsuite/gcc.target/i386/pr89676.c index 164a9da..7afa1a1 100644 --- a/gcc/testsuite/gcc.target/i386/pr89676.c +++ b/gcc/testsuite/gcc.target/i386/pr89676.c @@ -1,6 +1,6 @@ /* PR rtl-optimization/89676 */ /* { dg-do compile { target ia32 } } */ -/* { dg-options "-O2 -mno-stv" } */ +/* { dg-options "-O2 -mno-stv -fomit-frame-pointer" } */ unsigned long long foo (unsigned long long i) |