This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug testsuite/50085] [4.7 Regression] FAIL: g++.dg/opt/life1.C scan-assembler GLOBAL_OFFSET_TABLE on x86_64-apple-darwin10
- From: "dominiq at lps dot ens.fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 15 Aug 2011 21:48:18 +0000
- Subject: [Bug testsuite/50085] [4.7 Regression] FAIL: g++.dg/opt/life1.C scan-assembler GLOBAL_OFFSET_TABLE on x86_64-apple-darwin10
- Auto-submitted: auto-generated
- References: <bug-50085-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50085
Dominique d'Humieres <dominiq at lps dot ens.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |iains at gcc dot gnu.org,
| |mrs at gcc dot gnu.org
--- Comment #7 from Dominique d'Humieres <dominiq at lps dot ens.fr> 2011-08-15 21:48:18 UTC ---
> > It required PIC and ILP32 before. Why wasn't supported?
>
> Good question;-) but I don't know the answer!-(
And the answer is
-// { dg-do compile { target i?86-*-linux* x86_64-*-linux* } }
-// { dg-require-effective-target ilp32 }
+// { dg-do compile { target { { i?86-*-* x86_64-*-* } && ia32 } } }
Before the patch, the test was run on linux only. After it it is run on all the
{ i?86-*-* x86_64-*-* } platforms.
An alternative is
// { dg-final { scan-assembler "GLOBAL_OFFSET_TABLE" { xfail *-*-darwin* } } }
I don't know what is supposed to replace "GLOBAL_OFFSET_TABLE" on darwin.