public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug testsuite/50085] New: [4.7 Regression] FAIL: g++.dg/opt/life1.C scan-assembler GLOBAL_OFFSET_TABLE on x86_64-apple-darwin10
@ 2011-08-15 12:05 dominiq at lps dot ens.fr
2011-08-15 13:32 ` [Bug testsuite/50085] " hjl.tools at gmail dot com
` (8 more replies)
0 siblings, 9 replies; 10+ messages in thread
From: dominiq at lps dot ens.fr @ 2011-08-15 12:05 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50085
Bug #: 50085
Summary: [4.7 Regression] FAIL: g++.dg/opt/life1.C
scan-assembler GLOBAL_OFFSET_TABLE on
x86_64-apple-darwin10
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: testsuite
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: dominiq@lps.ens.fr
CC: hjl@gcc.gnu.org
Host: x86_64-apple-darwin10
Target: x86_64-apple-darwin10
Build: x86_64-apple-darwin10
The change at revision 176090 changed g++.dg/opt/life1.C from "unsupported",
i.e., with
// { dg-do compile { target i?86-*-linux* x86_64-*-linux* } }
// { dg-require-effective-target ilp32 }
to "unexpected failures", i.e., with
// { dg-do compile { target { { i?86-*-* x86_64-*-* } && ia32 } } }
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug testsuite/50085] [4.7 Regression] FAIL: g++.dg/opt/life1.C scan-assembler GLOBAL_OFFSET_TABLE on x86_64-apple-darwin10
2011-08-15 12:05 [Bug testsuite/50085] New: [4.7 Regression] FAIL: g++.dg/opt/life1.C scan-assembler GLOBAL_OFFSET_TABLE on x86_64-apple-darwin10 dominiq at lps dot ens.fr
@ 2011-08-15 13:32 ` hjl.tools at gmail dot com
2011-08-15 13:43 ` dominiq at lps dot ens.fr
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: hjl.tools at gmail dot com @ 2011-08-15 13:32 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50085
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |hjl.tools at gmail dot com
--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> 2011-08-15 13:29:46 UTC ---
Can you try this
---
diff --git a/gcc/testsuite/g++.dg/opt/life1.C
b/gcc/testsuite/g++.dg/opt/life1.C
index 42fd744..cacd365 100644
--- a/gcc/testsuite/g++.dg/opt/life1.C
+++ b/gcc/testsuite/g++.dg/opt/life1.C
@@ -1,7 +1,6 @@
// This testcase did not set up the pic register on IA-32 due
// to bug in calculate_global_regs_live EH edge handling.
-// { dg-do compile { target { { i?86-*-* x86_64-*-* } && ia32 } } }
-// { dg-require-effective-target fpic }
+// { dg-do compile { target { { i?86-*-* x86_64-*-* } && ia32 && fpic} } }
// { dg-options "-O2 -fPIC" }
struct A { };
---
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug testsuite/50085] [4.7 Regression] FAIL: g++.dg/opt/life1.C scan-assembler GLOBAL_OFFSET_TABLE on x86_64-apple-darwin10
2011-08-15 12:05 [Bug testsuite/50085] New: [4.7 Regression] FAIL: g++.dg/opt/life1.C scan-assembler GLOBAL_OFFSET_TABLE on x86_64-apple-darwin10 dominiq at lps dot ens.fr
2011-08-15 13:32 ` [Bug testsuite/50085] " hjl.tools at gmail dot com
@ 2011-08-15 13:43 ` dominiq at lps dot ens.fr
2011-08-15 13:46 ` hjl.tools at gmail dot com
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: dominiq at lps dot ens.fr @ 2011-08-15 13:43 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50085
--- Comment #2 from Dominique d'Humieres <dominiq at lps dot ens.fr> 2011-08-15 13:38:15 UTC ---
> Can you try this ...
With the change I get:
ERROR: g++.dg/opt/life1-c.C: syntax error in target selector "target i?86-*-*
x86_64-*-* && ia32 && fpic" for " dg-do 3 compile { target { { i?86-*-*
x86_64-*-* } && ia32 && fpic } } "
If I use
// { dg-do compile { target { { i?86-*-* x86_64-*-* } && { ia32 && fpic } } }
}
The test fails with -m32 (unsupported with -m64).
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug testsuite/50085] [4.7 Regression] FAIL: g++.dg/opt/life1.C scan-assembler GLOBAL_OFFSET_TABLE on x86_64-apple-darwin10
2011-08-15 12:05 [Bug testsuite/50085] New: [4.7 Regression] FAIL: g++.dg/opt/life1.C scan-assembler GLOBAL_OFFSET_TABLE on x86_64-apple-darwin10 dominiq at lps dot ens.fr
2011-08-15 13:32 ` [Bug testsuite/50085] " hjl.tools at gmail dot com
2011-08-15 13:43 ` dominiq at lps dot ens.fr
@ 2011-08-15 13:46 ` hjl.tools at gmail dot com
2011-08-15 15:02 ` dominiq at lps dot ens.fr
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: hjl.tools at gmail dot com @ 2011-08-15 13:46 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50085
--- Comment #3 from H.J. Lu <hjl.tools at gmail dot com> 2011-08-15 13:42:59 UTC ---
(In reply to comment #2)
> > Can you try this ...
>
> With the change I get:
>
> ERROR: g++.dg/opt/life1-c.C: syntax error in target selector "target i?86-*-*
> x86_64-*-* && ia32 && fpic" for " dg-do 3 compile { target { { i?86-*-*
> x86_64-*-* } && ia32 && fpic } } "
>
> If I use
>
> // { dg-do compile { target { { i?86-*-* x86_64-*-* } && { ia32 && fpic } } }
> }
>
> The test fails with -m32 (unsupported with -m64).
Did this test work with -m32 before?
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug testsuite/50085] [4.7 Regression] FAIL: g++.dg/opt/life1.C scan-assembler GLOBAL_OFFSET_TABLE on x86_64-apple-darwin10
2011-08-15 12:05 [Bug testsuite/50085] New: [4.7 Regression] FAIL: g++.dg/opt/life1.C scan-assembler GLOBAL_OFFSET_TABLE on x86_64-apple-darwin10 dominiq at lps dot ens.fr
` (2 preceding siblings ...)
2011-08-15 13:46 ` hjl.tools at gmail dot com
@ 2011-08-15 15:02 ` dominiq at lps dot ens.fr
2011-08-15 15:03 ` hjl.tools at gmail dot com
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: dominiq at lps dot ens.fr @ 2011-08-15 15:02 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50085
--- Comment #4 from Dominique d'Humieres <dominiq at lps dot ens.fr> 2011-08-15 14:55:20 UTC ---
> Did this test work with -m32 before?
It was unsupported.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug testsuite/50085] [4.7 Regression] FAIL: g++.dg/opt/life1.C scan-assembler GLOBAL_OFFSET_TABLE on x86_64-apple-darwin10
2011-08-15 12:05 [Bug testsuite/50085] New: [4.7 Regression] FAIL: g++.dg/opt/life1.C scan-assembler GLOBAL_OFFSET_TABLE on x86_64-apple-darwin10 dominiq at lps dot ens.fr
` (3 preceding siblings ...)
2011-08-15 15:02 ` dominiq at lps dot ens.fr
@ 2011-08-15 15:03 ` hjl.tools at gmail dot com
2011-08-15 15:26 ` dominiq at lps dot ens.fr
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: hjl.tools at gmail dot com @ 2011-08-15 15:03 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50085
--- Comment #5 from H.J. Lu <hjl.tools at gmail dot com> 2011-08-15 15:01:51 UTC ---
(In reply to comment #4)
> > Did this test work with -m32 before?
>
> It was unsupported.
It required PIC and ILP32 before. Why wasn't supported?
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug testsuite/50085] [4.7 Regression] FAIL: g++.dg/opt/life1.C scan-assembler GLOBAL_OFFSET_TABLE on x86_64-apple-darwin10
2011-08-15 12:05 [Bug testsuite/50085] New: [4.7 Regression] FAIL: g++.dg/opt/life1.C scan-assembler GLOBAL_OFFSET_TABLE on x86_64-apple-darwin10 dominiq at lps dot ens.fr
` (4 preceding siblings ...)
2011-08-15 15:03 ` hjl.tools at gmail dot com
@ 2011-08-15 15:26 ` dominiq at lps dot ens.fr
2011-08-15 22:04 ` dominiq at lps dot ens.fr
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: dominiq at lps dot ens.fr @ 2011-08-15 15:26 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50085
--- Comment #6 from Dominique d'Humieres <dominiq at lps dot ens.fr> 2011-08-15 15:09:10 UTC ---
> It required PIC and ILP32 before. Why wasn't supported?
Good question;-) but I don't know the answer!-(
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug testsuite/50085] [4.7 Regression] FAIL: g++.dg/opt/life1.C scan-assembler GLOBAL_OFFSET_TABLE on x86_64-apple-darwin10
2011-08-15 12:05 [Bug testsuite/50085] New: [4.7 Regression] FAIL: g++.dg/opt/life1.C scan-assembler GLOBAL_OFFSET_TABLE on x86_64-apple-darwin10 dominiq at lps dot ens.fr
` (5 preceding siblings ...)
2011-08-15 15:26 ` dominiq at lps dot ens.fr
@ 2011-08-15 22:04 ` dominiq at lps dot ens.fr
2011-08-15 22:07 ` hjl at gcc dot gnu.org
2011-08-15 22:10 ` hjl.tools at gmail dot com
8 siblings, 0 replies; 10+ messages in thread
From: dominiq at lps dot ens.fr @ 2011-08-15 22:04 UTC (permalink / raw)
To: gcc-bugs
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.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug testsuite/50085] [4.7 Regression] FAIL: g++.dg/opt/life1.C scan-assembler GLOBAL_OFFSET_TABLE on x86_64-apple-darwin10
2011-08-15 12:05 [Bug testsuite/50085] New: [4.7 Regression] FAIL: g++.dg/opt/life1.C scan-assembler GLOBAL_OFFSET_TABLE on x86_64-apple-darwin10 dominiq at lps dot ens.fr
` (6 preceding siblings ...)
2011-08-15 22:04 ` dominiq at lps dot ens.fr
@ 2011-08-15 22:07 ` hjl at gcc dot gnu.org
2011-08-15 22:10 ` hjl.tools at gmail dot com
8 siblings, 0 replies; 10+ messages in thread
From: hjl at gcc dot gnu.org @ 2011-08-15 22:07 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50085
--- Comment #8 from hjl at gcc dot gnu.org <hjl at gcc dot gnu.org> 2011-08-15 22:04:09 UTC ---
Author: hjl
Date: Mon Aug 15 22:04:04 2011
New Revision: 177772
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=177772
Log:
Only run g++.dg/opt/life1.C on Linux.
2011-08-15 H.J. Lu <hongjiu.lu@intel.com>
PR testsuite/50085
* g++.dg/opt/life1.C: Only run on Linux.
Modified:
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/g++.dg/opt/life1.C
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug testsuite/50085] [4.7 Regression] FAIL: g++.dg/opt/life1.C scan-assembler GLOBAL_OFFSET_TABLE on x86_64-apple-darwin10
2011-08-15 12:05 [Bug testsuite/50085] New: [4.7 Regression] FAIL: g++.dg/opt/life1.C scan-assembler GLOBAL_OFFSET_TABLE on x86_64-apple-darwin10 dominiq at lps dot ens.fr
` (7 preceding siblings ...)
2011-08-15 22:07 ` hjl at gcc dot gnu.org
@ 2011-08-15 22:10 ` hjl.tools at gmail dot com
8 siblings, 0 replies; 10+ messages in thread
From: hjl.tools at gmail dot com @ 2011-08-15 22:10 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50085
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.7.0
--- Comment #9 from H.J. Lu <hjl.tools at gmail dot com> 2011-08-15 22:06:54 UTC ---
Fixed.
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2011-08-15 22:07 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-15 12:05 [Bug testsuite/50085] New: [4.7 Regression] FAIL: g++.dg/opt/life1.C scan-assembler GLOBAL_OFFSET_TABLE on x86_64-apple-darwin10 dominiq at lps dot ens.fr
2011-08-15 13:32 ` [Bug testsuite/50085] " hjl.tools at gmail dot com
2011-08-15 13:43 ` dominiq at lps dot ens.fr
2011-08-15 13:46 ` hjl.tools at gmail dot com
2011-08-15 15:02 ` dominiq at lps dot ens.fr
2011-08-15 15:03 ` hjl.tools at gmail dot com
2011-08-15 15:26 ` dominiq at lps dot ens.fr
2011-08-15 22:04 ` dominiq at lps dot ens.fr
2011-08-15 22:07 ` hjl at gcc dot gnu.org
2011-08-15 22:10 ` hjl.tools at gmail dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).