Bug 38164 - gcc.target/i386/amd64-abi-3.c fails at -m64 on i686-apple-darwin9
Summary: gcc.target/i386/amd64-abi-3.c fails at -m64 on i686-apple-darwin9
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: testsuite (show other bugs)
Version: 4.4.0
: P3 normal
Target Milestone: 4.4.0
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-17 00:29 UTC by Jack Howarth
Modified: 2009-02-20 11:26 UTC (History)
2 users (show)

See Also:
Host: i686-apple-darwin9
Target: i686-apple-darwin9
Build: i686-apple-darwin9
Known to work:
Known to fail:
Last reconfirmed:


Attachments
assembly file for gcc.target/i386/amd64-abi-3.c at -m64 on i686-apple-darwin9 (461 bytes, text/plain)
2008-11-17 00:30 UTC, Jack Howarth
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jack Howarth 2008-11-17 00:29:37 UTC
The gcc.target/i386/amd64-abi-3.c test case fails at -m64 on i686-apple-darwin9 as follows...

Executing on host: /sw/src/fink.build/gcc44-4.3.999-20081116/darwin_objdir/gcc/xgcc -B/sw/src/fink.build/gcc44-4.3.999-20081116/darwin_objdir/gcc/ /sw/src/fink.build/gcc44-4.3.999-20081116/gcc-4.4-20081116/gcc/testsuite/gcc.target/i386/amd64-abi-3.c   -O2 -mno-sse -S  -m64 -o amd64-abi-3.s    (timeout = 300)
PASS: gcc.target/i386/amd64-abi-3.c (test for excess errors)
FAIL: gcc.target/i386/amd64-abi-3.c scan-assembler subq[\\t ]*\\$88,[\\t ]*%rsp
PASS: gcc.target/i386/amd64-abi-3.c scan-assembler-not subq[\\t ]*\\$216,[\\t ]*%rsp
Comment 1 Jack Howarth 2008-11-17 00:30:49 UTC
Created attachment 16703 [details]
assembly file for gcc.target/i386/amd64-abi-3.c at -m64 on i686-apple-darwin9
Comment 2 Uroš Bizjak 2009-02-19 22:13:21 UTC
Just add -fomit-frame-pointer to dg-options.
Comment 3 Dominique d'Humieres 2009-02-20 09:41:22 UTC
> Just add -fomit-frame-pointer to dg-options.

Indeed with the following patch:

--- gcc/testsuite/gcc.target/i386/amd64-abi-3.c	2008-09-02 22:05:08.000000000 +0200
+++ /opt/gcc/gcc-4.4-work/gcc/testsuite/gcc.target/i386/amd64-abi-3.c	2009-02-19 23:20:19.000000000 +0100
@@ -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" } } */

the tests pass:

PASS: gcc.target/i386/amd64-abi-3.c (test for excess errors)
PASS: gcc.target/i386/amd64-abi-3.c scan-assembler subq[\\t ]*\\$88,[\\t ]*%rsp
PASS: gcc.target/i386/amd64-abi-3.c scan-assembler-not subq[\\t ]*\\$216,[\\t ]*%rsp
 
Comment 4 uros 2009-02-20 11:25:59 UTC
Subject: Bug 38164

Author: uros
Date: Fri Feb 20 11:25:42 2009
New Revision: 144318

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=144318
Log:
	PR testsuite/38164
	* gcc.target/i386/amd64-abi-3.c: Add -fomit-frame-pointer
	to dg-options.


Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.target/i386/amd64-abi-3.c

Comment 5 Uroš Bizjak 2009-02-20 11:26:38 UTC
Fixed.