http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46822
Nicola Pero <nicola at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |WAITING Last reconfirmed| |2011.01.17 22:49:07 CC| |nicola at gcc dot gnu.org Ever Confirmed|0 |1 --- Comment #2 from Nicola Pero <nicola at gcc dot gnu.org> 2011-01-17 22:49:07 UTC --- Isdmter thanks for your report and the testcase. The attached testcase works for me using GCC 4.6.0 (pre-release) -- gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/opt/gcc/trunk7/libexec/gcc/i686-pc-linux-gnu/4.6.0/lto-wrapper Target: i686-pc-linux-gnu Configured with: ../trunk7/configure --prefix=/opt/gcc/trunk7 --enable-languages=c,objc,c++,obj-c++ --enable-objc-gc --with-gmp=/opt/gcc/auxiliary/ --with-mpfr=/opt/gcc/auxiliary/ --with-mpc=/opt/gcc/auxiliary/ --enable-checking=release : (reconfigured) ../trunk7/configure --prefix=/opt/gcc/trunk7 --enable-objc-gc --with-gmp=/opt/gcc/auxiliary/ --with-mpfr=/opt/gcc/auxiliary/ --with-mpc=/opt/gcc/auxiliary/ --enable-checking=release --enable-languages=c,c++,lto,objc,obj-c++ --no-create --no-recursion Thread model: posix gcc version 4.6.0 20110116 (experimental) (GCC) [nicola@lampone ~]$ gcc -Wall -save-temps -o main -pthread -lpthread main.c [nicola@lampone ~]$ ./main 0 0.000000 0 0.000000 [nicola@lampone ~]$ I also tried on a x86_64-unknown-linux-gnu AMD machine, similar to yours, and it works fine there too. Maybe you could manage to try with GCC 4.6.0 (prerelease) and confirm that you're still seeing the bug there ? Thanks