Re: libgomp & solaris

2006-01-20 Thread Eric Botcazou
> Hm, then sol2.h and sol26.h build the minority where we have pthread_s_. > Don't know the history yet. That doesn't seem to be a Sun-ism. -- Eric Botcazou

Re: libgomp & solaris

2006-01-20 Thread Andreas Tobler
Richard Henderson wrote: On Fri, Jan 20, 2006 at 10:18:18PM +0100, Andreas Tobler wrote: or with double guard: #ifdef HAVE_GETLOADAVG #ifdef HAVE_SYS_LOADAVG_H # include sys/loadavg.h #endif #endif This, I guess. Ok. Thanks. Sounds like a typo in the specs for the platform. Hm, in gcc.c

Re: libgomp & solaris

2006-01-20 Thread Richard Henderson
On Fri, Jan 20, 2006 at 10:18:18PM +0100, Andreas Tobler wrote: > or with double guard: > > #ifdef HAVE_GETLOADAVG > #ifdef HAVE_SYS_LOADAVG_H > # include sys/loadavg.h > #endif > #endif This, I guess. > >Sounds like a typo in the specs for the platform. > > Hm, in gcc.c I find a hardcoded -pth

Re: libgomp & solaris

2006-01-20 Thread Andreas Tobler
Andreas Tobler wrote: Richard Henderson wrote: On Thu, Jan 19, 2006 at 10:45:39PM +0100, Andreas Tobler wrote: In team.c solaris fails due to the fact that alloca is defined in alloca.h iso stdlib.h ... Er, *not* defined did you mean? This should probably be fixed with a #define to __builtin

Re: libgomp & solaris

2006-01-20 Thread Andreas Tobler
Richard Henderson wrote: On Thu, Jan 19, 2006 at 10:45:39PM +0100, Andreas Tobler wrote: In team.c solaris fails due to the fact that alloca is defined in alloca.h iso stdlib.h ... Er, *not* defined did you mean? This should probably be fixed with a #define to __builtin_alloca in libgomp.h or

Re: libgomp & solaris

2006-01-19 Thread Uros Bizjak
Hello, > Andrew P. wanted me to report the issues I encountered with libgomp and > solaris > on head. > The next issue is the -pthread in the config stuff. Solaris does not like it > :) > -pthreads instead. I have encountered the same problem, perhaps the analysis at http://gcc.gnu.org/ml/gcc

Re: libgomp & solaris

2006-01-19 Thread Richard Henderson
On Thu, Jan 19, 2006 at 10:45:39PM +0100, Andreas Tobler wrote: > In team.c solaris fails due to the fact that alloca is defined in > alloca.h iso stdlib.h ... Er, *not* defined did you mean? This should probably be fixed with a #define to __builtin_alloca in libgomp.h or so. > config/posix/pro

libgomp & solaris

2006-01-19 Thread Andreas Tobler
Hello, Andrew P. wanted me to report the issues I encountered with libgomp and solaris on head. In team.c solaris fails due to the fact that alloca is defined in alloca.h iso stdlib.h, config/posix/proc.c fails in a similar manner due to the fact that getloadavg is defined in sys/loadavg.h