Fortran-related libgomp failures in case of -fno-openmp

2009-06-01 Thread Gerald Pfeifer
On i386-unknown-freebsd7.1 we see the following tests fail: FAIL: libgomp.fortran/condinc2.f -O (test for excess errors) WARNING: libgomp.fortran/condinc2.f -O compilation failed to produce executable FAIL: libgomp.fortran/condinc4.f90 -O (test for excess errors) WARNING: libgomp.fo

Re: Fortran-related libgomp failures in case of -fno-openmp

2009-06-01 Thread Steve Kargl
On Mon, Jun 01, 2009 at 07:59:15PM +0200, Gerald Pfeifer wrote: > Excess errors: > /pfeifer/OBJ-0531-2252/i386-unknown-freebsd7.1/./libgomp/.libs/libgomp.so: > undefined reference to `pthread_create' > > And what all of these three testcases have in common is > > { dg-options "-fno-openmp

Re: Fortran-related libgomp failures in case of -fno-openmp

2009-06-01 Thread Janis Johnson
On Mon, 2009-06-01 at 11:14 -0700, Steve Kargl wrote: > On Mon, Jun 01, 2009 at 07:59:15PM +0200, Gerald Pfeifer wrote: > > Excess errors: > > /pfeifer/OBJ-0531-2252/i386-unknown-freebsd7.1/./libgomp/.libs/libgomp.so: > > undefined reference to `pthread_create' > > > > And what all of these

Re: Fortran-related libgomp failures in case of -fno-openmp

2009-06-01 Thread Steve Kargl
On Mon, Jun 01, 2009 at 12:49:42PM -0700, Janis Johnson wrote: > On Mon, 2009-06-01 at 11:14 -0700, Steve Kargl wrote: > > > > If someone uses -fno-openmp and still tries to link to libgomp, > > then the -pthread option is missing and hence the test fail > > because -lpthread is not included. On