public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug testsuite/45851] New: FAIL: gcc.dg/lto/20090210 link test with WHOPR owing to bad -pthread option.
@ 2010-10-01  1:28 davek at gcc dot gnu.org
  2010-10-01  1:30 ` [Bug testsuite/45851] " davek at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: davek at gcc dot gnu.org @ 2010-10-01  1:28 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45851

           Summary: FAIL: gcc.dg/lto/20090210 link test with WHOPR owing
                    to bad -pthread option.
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: testsuite
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: davek@gcc.gnu.org


>From original post at http://gcc.gnu.org/ml/gcc-patches/2010-09/msg01076.html:

On 15/07/2010 19:08, Rainer Orth wrote:

> > * The TLS tests in libobjc failed because they weren't linked with
> >   -pthread.  I've implemented and used dg-add-options tls to handle
> >   this.  Only gcc.dg/lto/20090210_0.c needs an explict
> >   dg-extra-ld-options "-pthread" since dg-lto-do tests don't work with
> >   dg-add-options.

> > 	gcc/testsuite:
> > 	* gcc.dg/lto/20090210_0.c: Add -pthread for *-*-solaris2.[89].

    Hi Rainer,

  I have a problem on i686-pc-cygwin caused by this part of your patch:

> > diff -r c7b371acdb35 gcc/testsuite/gcc.dg/lto/20090210_0.c
> > --- a/gcc/testsuite/gcc.dg/lto/20090210_0.c	Mon Jul 12 16:03:30 2010 +0200
> > +++ b/gcc/testsuite/gcc.dg/lto/20090210_0.c	Thu Jul 15 18:27:58 2010 +0200
> > @@ -1,5 +1,7 @@
> >  /* { dg-lto-do run }  */
> >  /* { dg-suppress-ld-options {-fPIC} }  */
> > +/* { dg-require-effective-target tls } */
> > +/* { dg-extra-ld-options "-pthread" { target *-*-solaris2.[89] } } */
> >  int foo (int x)
> >  {
> >    return x;

  As far as I can tell, dg-extra-ld-options doesn't take a target modifier in
the way you've used there, so that "-pthread" is in effect on all targets and
breaks the testcase on targets which don't support that option.  See proc
lto-get-options-main in gcc/testsuite/lto.exp.  Perhaps you could extend it to
work with a target selector?  Or maybe there's some other way you could get
the -pthread flag passed on Solaris (only)?

    cheers,
      DaveK


Here's gcc.log around where the failure occurs:



Executing on host: /gnu/gcc/obj-tfmode-fenv/gcc/xgcc
-B/gnu/gcc/obj-tfmode-fenv/gcc/  -O0 -fwhopr  -c  -o c_lto_20090210_0.o
/gnu/gcc/gcc-unpatched/gcc/testsuite/gcc.dg/lto/20090210_0.c    (timeout = 300)
spawn /gnu/gcc/obj-tfmode-fenv/gcc/xgcc -B/gnu/gcc/obj-tfmode-fenv/gcc/ -O0
-fwhopr -c -o c_lto_20090210_0.o
/gnu/gcc/gcc-unpatched/gcc/testsuite/gcc.dg/lto/20090210_0.c 
PASS: gcc.dg/lto/20090210 c_lto_20090210_0.o assemble, -O0 -fwhopr
Executing on host: /gnu/gcc/obj-tfmode-fenv/gcc/xgcc
-B/gnu/gcc/obj-tfmode-fenv/gcc/  -O0 -fwhopr -fPIC -c  -o c_lto_20090210_1.o
/gnu/gcc/gcc-unpatched/gcc/testsuite/gcc.dg/lto/20090210_1.c    (timeout = 300)
spawn /gnu/gcc/obj-tfmode-fenv/gcc/xgcc -B/gnu/gcc/obj-tfmode-fenv/gcc/ -O0
-fwhopr -fPIC -c -o c_lto_20090210_1.o
/gnu/gcc/gcc-unpatched/gcc/testsuite/gcc.dg/lto/20090210_1.c 
/gnu/gcc/gcc-unpatched/gcc/testsuite/gcc.dg/lto/20090210_1.c:1:0: warning:
-fPIC ignored for target (all code is position independent) [enabled by
default]
output is:
/gnu/gcc/gcc-unpatched/gcc/testsuite/gcc.dg/lto/20090210_1.c:1:0: warning:
-fPIC ignored for target (all code is position independent) [enabled by
default]

PASS: gcc.dg/lto/20090210 c_lto_20090210_1.o assemble, -O0 -fwhopr
Executing on host: /gnu/gcc/obj-tfmode-fenv/gcc/xgcc
-B/gnu/gcc/obj-tfmode-fenv/gcc/ c_lto_20090210_0.o c_lto_20090210_1.o  -O0
-fwhopr -pthread      -o gcc-dg-lto-20090210-01    (timeout = 300)
spawn /gnu/gcc/obj-tfmode-fenv/gcc/xgcc -B/gnu/gcc/obj-tfmode-fenv/gcc/
c_lto_20090210_0.o c_lto_20090210_1.o -O0 -fwhopr -pthread -o
gcc-dg-lto-20090210-01 
xgcc: error: unrecognized option '-pthread'
compiler exited with status 1
output is:
xgcc: error: unrecognized option '-pthread'

FAIL: gcc.dg/lto/20090210 c_lto_20090210_0.o-c_lto_20090210_1.o link, -O0
-fwhopr
UNRESOLVED: gcc.dg/lto/20090210 c_lto_20090210_0.o-c_lto_20090210_1.o execute
-O0 -fwhopr


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug testsuite/45851] FAIL: gcc.dg/lto/20090210 link test with WHOPR owing to bad -pthread option.
  2010-10-01  1:28 [Bug testsuite/45851] New: FAIL: gcc.dg/lto/20090210 link test with WHOPR owing to bad -pthread option davek at gcc dot gnu.org
@ 2010-10-01  1:30 ` davek at gcc dot gnu.org
  2010-10-01 12:31 ` ro at CeBiTec dot Uni-Bielefeld.DE
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: davek at gcc dot gnu.org @ 2010-10-01  1:30 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45851

Dave Korn <davek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2010.10.01 01:30:26
         AssignedTo|unassigned at gcc dot       |ro at gcc dot gnu.org
                   |gnu.org                     |
     Ever Confirmed|0                           |1

--- Comment #1 from Dave Korn <davek at gcc dot gnu.org> 2010-10-01 01:30:26 UTC ---
Hi Rainer; Cc'ing you as requested back before you went on vacation.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug testsuite/45851] FAIL: gcc.dg/lto/20090210 link test with WHOPR owing to bad -pthread option.
  2010-10-01  1:28 [Bug testsuite/45851] New: FAIL: gcc.dg/lto/20090210 link test with WHOPR owing to bad -pthread option davek at gcc dot gnu.org
  2010-10-01  1:30 ` [Bug testsuite/45851] " davek at gcc dot gnu.org
@ 2010-10-01 12:31 ` ro at CeBiTec dot Uni-Bielefeld.DE
  2010-10-11 16:58 ` ro at gcc dot gnu.org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: ro at CeBiTec dot Uni-Bielefeld.DE @ 2010-10-01 12:31 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45851

--- Comment #2 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot Uni-Bielefeld.DE> 2010-10-01 12:31:14 UTC ---
> --- Comment #1 from Dave Korn <davek at gcc dot gnu.org> 2010-10-01 01:30:26 UTC ---
> Hi Rainer; Cc'ing you as requested back before you went on vacation.

Thanks.  I hope to get to this either this weekend or the next.

    Rainer


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug testsuite/45851] FAIL: gcc.dg/lto/20090210 link test with WHOPR owing to bad -pthread option.
  2010-10-01  1:28 [Bug testsuite/45851] New: FAIL: gcc.dg/lto/20090210 link test with WHOPR owing to bad -pthread option davek at gcc dot gnu.org
  2010-10-01  1:30 ` [Bug testsuite/45851] " davek at gcc dot gnu.org
  2010-10-01 12:31 ` ro at CeBiTec dot Uni-Bielefeld.DE
@ 2010-10-11 16:58 ` ro at gcc dot gnu.org
  2010-10-12 12:06 ` ro at gcc dot gnu.org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: ro at gcc dot gnu.org @ 2010-10-11 16:58 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45851

Rainer Orth <ro at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                URL|                            |http://gcc.gnu.org/ml/gcc-p
                   |                            |atches/2010-10/msg00943.htm
                   |                            |l

--- Comment #3 from Rainer Orth <ro at gcc dot gnu.org> 2010-10-11 16:57:55 UTC ---
Patch submitted.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug testsuite/45851] FAIL: gcc.dg/lto/20090210 link test with WHOPR owing to bad -pthread option.
  2010-10-01  1:28 [Bug testsuite/45851] New: FAIL: gcc.dg/lto/20090210 link test with WHOPR owing to bad -pthread option davek at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2010-10-11 16:58 ` ro at gcc dot gnu.org
@ 2010-10-12 12:06 ` ro at gcc dot gnu.org
  2010-10-12 12:08 ` ro at gcc dot gnu.org
  2010-10-12 12:10 ` davek at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: ro at gcc dot gnu.org @ 2010-10-12 12:06 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45851

--- Comment #4 from Rainer Orth <ro at gcc dot gnu.org> 2010-10-12 12:06:22 UTC ---
Author: ro
Date: Tue Oct 12 12:06:18 2010
New Revision: 165366

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=165366
Log:
    gcc/testsuite:
    PR testsuite/45851
    * lib/lto.exp (lto-get-options-main): Support optional target
    selector for dg-extra-ld-options.

    gcc:
    PR testsuite/45851
    * doc/sourcebuild.texi (LTO Testing, dg-extra-ld-options):
    Document optional target selector.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/doc/sourcebuild.texi
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/lib/lto.exp


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug testsuite/45851] FAIL: gcc.dg/lto/20090210 link test with WHOPR owing to bad -pthread option.
  2010-10-01  1:28 [Bug testsuite/45851] New: FAIL: gcc.dg/lto/20090210 link test with WHOPR owing to bad -pthread option davek at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2010-10-12 12:06 ` ro at gcc dot gnu.org
@ 2010-10-12 12:08 ` ro at gcc dot gnu.org
  2010-10-12 12:10 ` davek at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: ro at gcc dot gnu.org @ 2010-10-12 12:08 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45851

Rainer Orth <ro at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.6.0

--- Comment #5 from Rainer Orth <ro at gcc dot gnu.org> 2010-10-12 12:08:10 UTC ---
Fixed for 4.6.0.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug testsuite/45851] FAIL: gcc.dg/lto/20090210 link test with WHOPR owing to bad -pthread option.
  2010-10-01  1:28 [Bug testsuite/45851] New: FAIL: gcc.dg/lto/20090210 link test with WHOPR owing to bad -pthread option davek at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2010-10-12 12:08 ` ro at gcc dot gnu.org
@ 2010-10-12 12:10 ` davek at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: davek at gcc dot gnu.org @ 2010-10-12 12:10 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45851

Dave Korn <davek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |VERIFIED

--- Comment #6 from Dave Korn <davek at gcc dot gnu.org> 2010-10-12 12:09:53 UTC ---
Verified at http://gcc.gnu.org/ml/gcc-patches/2010-10/msg00997.html


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-10-12 12:10 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-01  1:28 [Bug testsuite/45851] New: FAIL: gcc.dg/lto/20090210 link test with WHOPR owing to bad -pthread option davek at gcc dot gnu.org
2010-10-01  1:30 ` [Bug testsuite/45851] " davek at gcc dot gnu.org
2010-10-01 12:31 ` ro at CeBiTec dot Uni-Bielefeld.DE
2010-10-11 16:58 ` ro at gcc dot gnu.org
2010-10-12 12:06 ` ro at gcc dot gnu.org
2010-10-12 12:08 ` ro at gcc dot gnu.org
2010-10-12 12:10 ` davek at gcc dot gnu.org

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).