* [Bug lto/63998] gcc.dg/lto/pr60820 fails on darwin
2014-11-20 16:06 [Bug lto/63998] New: gcc.dg/lto/pr60820 fails on darwin fxcoudert at gcc dot gnu.org
@ 2014-11-20 16:07 ` fxcoudert at gcc dot gnu.org
2014-11-20 16:35 ` rguenth at gcc dot gnu.org
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: fxcoudert at gcc dot gnu.org @ 2014-11-20 16:07 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63998
Francois-Xavier Coudert <fxcoudert at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target| |x86_64-apple-darwin14
Status|UNCONFIRMED |NEW
Last reconfirmed| |2014-11-20
Host| |x86_64-apple-darwin14
Ever confirmed|0 |1
Build| |x86_64-apple-darwin14
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug lto/63998] gcc.dg/lto/pr60820 fails on darwin
2014-11-20 16:06 [Bug lto/63998] New: gcc.dg/lto/pr60820 fails on darwin fxcoudert at gcc dot gnu.org
2014-11-20 16:07 ` [Bug lto/63998] " fxcoudert at gcc dot gnu.org
@ 2014-11-20 16:35 ` rguenth at gcc dot gnu.org
2014-11-20 16:40 ` dominiq at lps dot ens.fr
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-11-20 16:35 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63998
--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
Maybe the testcase misses { dg-require-weak "" }? Not sure if that works for
lto.exp though - can you check?
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug lto/63998] gcc.dg/lto/pr60820 fails on darwin
2014-11-20 16:06 [Bug lto/63998] New: gcc.dg/lto/pr60820 fails on darwin fxcoudert at gcc dot gnu.org
2014-11-20 16:07 ` [Bug lto/63998] " fxcoudert at gcc dot gnu.org
2014-11-20 16:35 ` rguenth at gcc dot gnu.org
@ 2014-11-20 16:40 ` dominiq at lps dot ens.fr
2014-11-20 17:25 ` dominiq at lps dot ens.fr
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: dominiq at lps dot ens.fr @ 2014-11-20 16:40 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63998
Dominique d'Humieres <dominiq at lps dot ens.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |iains at gcc dot gnu.org
--- Comment #3 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> Maybe the testcase misses { dg-require-weak "" }? Not sure if that works for
> lto.exp though - can you check?
If so, it would probably need
// { dg-additional-options "-Wl,-undefined,dynamic_lookup" { target *-*-darwin*
} }
// { dg-additional-options "-Wl,-flat_namespace" { target *-*-darwin[89]* } }
(see gcc.dg/attr-weakref-1.c).
Untested so far.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug lto/63998] gcc.dg/lto/pr60820 fails on darwin
2014-11-20 16:06 [Bug lto/63998] New: gcc.dg/lto/pr60820 fails on darwin fxcoudert at gcc dot gnu.org
` (2 preceding siblings ...)
2014-11-20 16:40 ` dominiq at lps dot ens.fr
@ 2014-11-20 17:25 ` dominiq at lps dot ens.fr
2014-11-21 8:27 ` rguenther at suse dot de
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: dominiq at lps dot ens.fr @ 2014-11-20 17:25 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63998
--- Comment #4 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> If so, it would probably need
>
> // { dg-additional-options "-Wl,-undefined,dynamic_lookup" { target *-*-darwin* } }
> // { dg-additional-options "-Wl,-flat_namespace" { target *-*-darwin[89]* } }
>
> (see gcc.dg/attr-weakref-1.c).
>
> Untested so far.
It does not work because lto does not support dg-additional-options.
I confirm that adding -w to dg-lto-options fixes the failures. However I have
noticed that there is a lto_prune_warns in lib/lto.exp. It would probably
better to add
"warning: alias definitions not supported in Mach-O; ignored" to the list.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug lto/63998] gcc.dg/lto/pr60820 fails on darwin
2014-11-20 16:06 [Bug lto/63998] New: gcc.dg/lto/pr60820 fails on darwin fxcoudert at gcc dot gnu.org
` (3 preceding siblings ...)
2014-11-20 17:25 ` dominiq at lps dot ens.fr
@ 2014-11-21 8:27 ` rguenther at suse dot de
2014-11-21 8:39 ` fxcoudert at gcc dot gnu.org
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: rguenther at suse dot de @ 2014-11-21 8:27 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63998
--- Comment #5 from rguenther at suse dot de <rguenther at suse dot de> ---
On Thu, 20 Nov 2014, dominiq at lps dot ens.fr wrote:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63998
>
> --- Comment #4 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> > If so, it would probably need
> >
> > // { dg-additional-options "-Wl,-undefined,dynamic_lookup" { target *-*-darwin* } }
> > // { dg-additional-options "-Wl,-flat_namespace" { target *-*-darwin[89]* } }
> >
> > (see gcc.dg/attr-weakref-1.c).
> >
> > Untested so far.
>
> It does not work because lto does not support dg-additional-options.
>
> I confirm that adding -w to dg-lto-options fixes the failures. However I have
> noticed that there is a lto_prune_warns in lib/lto.exp. It would probably
> better to add
> "warning: alias definitions not supported in Mach-O; ignored" to the list.
I'd rather skip the test for darwin then. The test tests sth with
"weak" which results in alias definitions, so if that doesn't work
then what's the point testing it?
Richard.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug lto/63998] gcc.dg/lto/pr60820 fails on darwin
2014-11-20 16:06 [Bug lto/63998] New: gcc.dg/lto/pr60820 fails on darwin fxcoudert at gcc dot gnu.org
` (4 preceding siblings ...)
2014-11-21 8:27 ` rguenther at suse dot de
@ 2014-11-21 8:39 ` fxcoudert at gcc dot gnu.org
2014-11-21 8:42 ` fxcoudert at gcc dot gnu.org
2014-11-21 8:42 ` fxcoudert at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: fxcoudert at gcc dot gnu.org @ 2014-11-21 8:39 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63998
--- Comment #6 from Francois-Xavier Coudert <fxcoudert at gcc dot gnu.org> ---
Author: fxcoudert
Date: Fri Nov 21 08:38:41 2014
New Revision: 217907
URL: https://gcc.gnu.org/viewcvs?rev=217907&root=gcc&view=rev
Log:
PR lto/63998
* gcc.dg/lto/pr60820_0.c: Skip on darwin.
Modified:
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/gcc.dg/lto/pr60820_0.c
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug lto/63998] gcc.dg/lto/pr60820 fails on darwin
2014-11-20 16:06 [Bug lto/63998] New: gcc.dg/lto/pr60820 fails on darwin fxcoudert at gcc dot gnu.org
` (5 preceding siblings ...)
2014-11-21 8:39 ` fxcoudert at gcc dot gnu.org
@ 2014-11-21 8:42 ` fxcoudert at gcc dot gnu.org
2014-11-21 8:42 ` fxcoudert at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: fxcoudert at gcc dot gnu.org @ 2014-11-21 8:42 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63998
Francois-Xavier Coudert <fxcoudert at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |5.0
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug lto/63998] gcc.dg/lto/pr60820 fails on darwin
2014-11-20 16:06 [Bug lto/63998] New: gcc.dg/lto/pr60820 fails on darwin fxcoudert at gcc dot gnu.org
` (6 preceding siblings ...)
2014-11-21 8:42 ` fxcoudert at gcc dot gnu.org
@ 2014-11-21 8:42 ` fxcoudert at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: fxcoudert at gcc dot gnu.org @ 2014-11-21 8:42 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63998
Francois-Xavier Coudert <fxcoudert at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #7 from Francois-Xavier Coudert <fxcoudert at gcc dot gnu.org> ---
(In reply to rguenther@suse.de from comment #5)
> I'd rather skip the test for darwin then. The test tests sth with
> "weak" which results in alias definitions, so if that doesn't work
> then what's the point testing it?
Confirmed fixed, as indicated. Thanks.
^ permalink raw reply [flat|nested] 9+ messages in thread