Re: libgomp crash fix

2006-12-18 Thread Bruno Haible
Jakub Jelinek wrote on 2006-11-20: > I think you should use -pthread instead of -lpthread here (and put it into > CFLAGS too temporarily), to make it more portable, or try all of nothing, > -pthread and -lpthread, i.e. add a for loop trying to compile and run the > program 3 times. Here's a revise

Re: libgomp crash fix

2006-11-08 Thread Bruno Haible
Andrew Pinski wrote: > > 2006-11-07 Bruno Haible <[EMAIL PROTECTED]> > > > > * config/tls.m4 (GCC_CHECK_TLS): Also check whether the libc supports > > TLS via __thread. > > How well does this work with cross compiler? The proposed patch changes only the ACTION-IF-TRUE argument of an AC

Re: libgomp crash fix

2006-11-08 Thread Andrew Pinski
On Wed, 2006-11-08 at 14:33 +0100, Bruno Haible wrote: > Hi, > > 2006-11-07 Bruno Haible <[EMAIL PROTECTED]> > > * config/tls.m4 (GCC_CHECK_TLS): Also check whether the libc supports > TLS via __thread. How well does this work with cross compiler? Thanks, Andrew Pinski

Re: libgomp crash fix

2006-11-08 Thread Richard Henderson
On Wed, Nov 08, 2006 at 02:33:08PM +0100, Bruno Haible wrote: > * config/tls.m4 (GCC_CHECK_TLS): Also check whether the libc supports > TLS via __thread. Ok. r~

libgomp crash fix

2006-11-08 Thread Bruno Haible
Hi, Bug #28468 (http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28468) causes a crash of nearly every valid program that parallelizes a loop through OMP when OMP_NUM_THREADS > 1. The affected systems are probably all Linux/x86 systems on which a glibc with LinuxThreads and without TLS is installed, a