This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch]:PR38164


Jack Howarth wrote:
The following patch adds the -fomit-frame-pointer flag to the
dg-options to allow the amd64-abi-3.c to pass on Darwin. Tested on
i686-apple-darwin9. Okay for gcc trunk?
             Jack
ps This fix was recommended by Uros Bizjak in PR38164.

2009-02-19 Jack Howarth <howarth@bromo.med.uc.edu>

	PR testsuite/38164
	* gcc.target/i386/amd64-abi-3.c: Add -fomit-frame-pointer for Darwin.


Index: gcc/testsuite/gcc.target/i386/amd64-abi-3.c
===================================================================
--- gcc/testsuite/gcc.target/i386/amd64-abi-3.c (revision 144312)
+++ gcc/testsuite/gcc.target/i386/amd64-abi-3.c (working copy)
@@ -1,6 +1,6 @@
/* { dg-do compile } */
/* { dg-require-effective-target lp64 } */
-/* { dg-options "-O2 -mno-sse" } */
+/* { dg-options "-O2 -mno-sse -fomit-frame-pointer" } */
/* { dg-final { scan-assembler "subq\[\\t \]*\\\$88,\[\\t \]*%rsp" } } */
/* { dg-final { scan-assembler-not "subq\[\\t \]*\\\$216,\[\\t \]*%rsp" } } */

Since it works for Darwin, I have committed this patch to mainline as obvious.


Thanks,
Uros.




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]