------- Comment #42 from dominiq at lps dot ens dot fr  2010-06-02 18:22 -------
I am using the following script:

#!/bin/sh
i=0
tls.ex
while [ $? == 0 ]
do
  i=`expr $i + 1`
  tls.ex
done
echo $i

tls.ex is generated by

/opt/gcc/build_w/prev-gcc/xgcc -B/opt/gcc/build_w/prev-gcc/ -g -O2 -pthread
pthread_create.c -o tls.ex

If I did not make any mistake in the script, it loops until tls.ex fails. for
an idle system with couple applications open, I get:

[macbook] f90/bug% tls.sh
26
[macbook] f90/bug% tls.sh
15
[macbook] f90/bug% tls.sh
150
[macbook] f90/bug% tls.sh
26
[macbook] f90/bug% tls.sh
157
[macbook] f90/bug% tls.sh
33
[macbook] f90/bug% tls.sh
68
[macbook] f90/bug% tls.sh
131


-- 


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

Reply via email to