]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
omit frame pointer in pr89676
authorAlexandre Oliva <oliva@adacore.com>
Wed, 28 Apr 2021 17:07:43 +0000 (14:07 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Wed, 28 Apr 2021 17:08:48 +0000 (14:08 -0300)
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.

gcc/testsuite/gcc.target/i386/pr89676.c

index 164a9da468046c1051ecfec4f44fa723b9edb75b..7afa1a1778d7157af222204ad53c2135a1eac76c 100644 (file)
@@ -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)