Re: Option -pthread in test suite with cross compilers

2012-06-06 Thread Jonathan Wakely
On Jun 6, 2012 2:14 PM, "Florian Weimer" wrote: > > On 06/06/2012 03:09 PM, Dave Korn wrote: I am not sure, but AFAICT, -pthread is Linux-specific. >>> >>> >>> No, it's the canonical multi-os option to enable pthreads, as >>> generic as it gets. >> >> >>   According to the manual(*), it's

Re: Option -pthread in test suite with cross compilers

2012-06-06 Thread Florian Weimer
On 06/06/2012 03:09 PM, Dave Korn wrote: I am not sure, but AFAICT, -pthread is Linux-specific. No, it's the canonical multi-os option to enable pthreads, as generic as it gets. According to the manual(*), it's a machine-dependent option for RS6000 and Solaris 2 only! And there's a lot o

Re: Option -pthread in test suite with cross compilers

2012-06-06 Thread Dave Korn
On 03/06/2012 04:43, Hans-Peter Nilsson wrote: > On Fri, 18 May 2012, Ralf Corsepius wrote: >> On 05/18/2012 09:24 AM, Sebastian Huber wrote: >>> Hi, >>> >>> if I run the ARM GCC test suite for C and C++ with the arm-rtemseabi4.11 >>> target, then I get several unexpected errors due to: >>> >>> gcc

Re: Option -pthread in test suite with cross compilers

2012-06-02 Thread Hans-Peter Nilsson
On Fri, 18 May 2012, Ian Lance Taylor wrote: > Joel Sherrill writes: > > > On 05/18/2012 08:27 AM, Ian Lance Taylor wrote: > >> Ralf Corsepius writes: > >> > >>> I am not sure, but AFAICT, -pthread is Linux-specific. > >> It's not properly documented, but -pthread works on a number of hosts, > >>

Re: Option -pthread in test suite with cross compilers

2012-06-02 Thread Hans-Peter Nilsson
On Fri, 18 May 2012, Joel Sherrill wrote: > I don't mind having -pthread be a noop but the leap > from a having a header file to having a specific gcc > option is a stretch IMO. Unless EVERY gcc target with > pthread support is required by gcc to have that option. > Is that the undocumented(?) inte

Re: Option -pthread in test suite with cross compilers

2012-06-02 Thread Hans-Peter Nilsson
On Fri, 18 May 2012, Ralf Corsepius wrote: > On 05/18/2012 09:24 AM, Sebastian Huber wrote: > > Hi, > > > > if I run the ARM GCC test suite for C and C++ with the arm-rtemseabi4.11 > > target, then I get several unexpected errors due to: > > > > gcc/testsuite/gcc/gcc.log:xgcc: error: unrecognized c

Re: Option -pthread in test suite with cross compilers

2012-05-18 Thread Jonathan Wakely
On 18 May 2012 16:53, Joel Sherrill wrote: > You didn't mention Cygwin in your list > but otherwise, it is pretty complete. According to the libstdc++ testsuite, cygwin doesn't require -pthread I think HPUX does need it, and IIRC when it was supported Tru64 did.

Re: Option -pthread in test suite with cross compilers

2012-05-18 Thread Ian Lance Taylor
Joel Sherrill writes: > I agree with you on this one. Would it be a good general > rule that on a system with pthreads, -pthread should be > accepted by gcc? Yes, I think so. Ian

Re: Option -pthread in test suite with cross compilers

2012-05-18 Thread Joel Sherrill
On 05/18/2012 10:50 AM, Ian Lance Taylor wrote: Joel Sherrill writes: On 05/18/2012 09:05 AM, Ian Lance Taylor wrote: Joel Sherrill writes: On 05/18/2012 08:27 AM, Ian Lance Taylor wrote: Ralf Corsepiuswrites: I am not sure, but AFAICT, -pthread is Linux-specific. It's not properl

Re: Option -pthread in test suite with cross compilers

2012-05-18 Thread Ian Lance Taylor
Joel Sherrill writes: > On 05/18/2012 09:05 AM, Ian Lance Taylor wrote: >> Joel Sherrill writes: >> >>> On 05/18/2012 08:27 AM, Ian Lance Taylor wrote: Ralf Corsepius writes: > I am not sure, but AFAICT, -pthread is Linux-specific. It's not properly documented, but -pthread

Re: Option -pthread in test suite with cross compilers

2012-05-18 Thread Joel Sherrill
On 05/18/2012 09:05 AM, Ian Lance Taylor wrote: Joel Sherrill writes: On 05/18/2012 08:27 AM, Ian Lance Taylor wrote: Ralf Corsepius writes: I am not sure, but AFAICT, -pthread is Linux-specific. It's not properly documented, but -pthread works on a number of hosts, including Solaris, Da

Re: Option -pthread in test suite with cross compilers

2012-05-18 Thread Ian Lance Taylor
Joel Sherrill writes: > On 05/18/2012 08:27 AM, Ian Lance Taylor wrote: >> Ralf Corsepius writes: >> >>> I am not sure, but AFAICT, -pthread is Linux-specific. >> It's not properly documented, but -pthread works on a number of hosts, >> including Solaris, Darwin, FreeBSD, NetBSD, OpenBSD, AIX. >

Re: Option -pthread in test suite with cross compilers

2012-05-18 Thread Joel Sherrill
On 05/18/2012 08:27 AM, Ian Lance Taylor wrote: Ralf Corsepius writes: I am not sure, but AFAICT, -pthread is Linux-specific. It's not properly documented, but -pthread works on a number of hosts, including Solaris, Darwin, FreeBSD, NetBSD, OpenBSD, AIX. Ian.. Is it better to make it a noop

Re: Option -pthread in test suite with cross compilers

2012-05-18 Thread Ian Lance Taylor
Ralf Corsepius writes: > I am not sure, but AFAICT, -pthread is Linux-specific. It's not properly documented, but -pthread works on a number of hosts, including Solaris, Darwin, FreeBSD, NetBSD, OpenBSD, AIX. Ian

Re: Option -pthread in test suite with cross compilers

2012-05-18 Thread Ralf Corsepius
On 05/18/2012 09:24 AM, Sebastian Huber wrote: Hi, if I run the ARM GCC test suite for C and C++ with the arm-rtemseabi4.11 target, then I get several unexpected errors due to: gcc/testsuite/gcc/gcc.log:xgcc: error: unrecognized command line option '-pthread' gcc/testsuite/g++/g++.log:g++: erro