Without an explicit -fomit-frame-pointer, x86 builds that disable
frame pointer optimization by default don't get the expected function
body.
Regstrapped on x86_64-linux-gnu. Also tested with ppc-vx7r2,
ppc64-vx7r2, arm-vx7r2, aarch64-vx7r2, x86_64-vx7r2, and x86-vx7r2. Ok
to install?
for gcc/testsuite/ChangeLog
* gcc.target/i386/pr82142b.c: Add -fomit-frame-pointer.
---
gcc/testsuite/gcc.target/i386/pr82142b.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/testsuite/gcc.target/i386/pr82142b.c
b/gcc/testsuite/gcc.target/i386/pr82142b.c
index d18b7b55a5080..a54f0f2ff808b 100644
--- a/gcc/testsuite/gcc.target/i386/pr82142b.c
+++ b/gcc/testsuite/gcc.target/i386/pr82142b.c
@@ -1,5 +1,5 @@
/* { dg-do compile { target ia32 } } */
-/* { dg-options "-O2 -mno-avx -msse2 -mno-stackrealign" } */
+/* { dg-options "-O2 -mno-avx -msse2 -mno-stackrealign -fomit-frame-pointer" }
*/
/* { dg-add-options check_function_bodies } */
/* Keep labels and directives ('.cfi_startproc', '.cfi_endproc'). */
/* { dg-final { check-function-bodies "**" "" "" { target "*-*-*" } {^\t?\.}
} } */
--
Alexandre Oliva, happy hacker https://blog.lx.oliva.nom.br/
Free Software Activist FSFLA co-founder GNU Toolchain Engineer
More tolerance and less prejudice are key for inclusion and diversity.
Excluding neuro-others for not behaving ""normal"" is *not* inclusive!