------- Comment #4 from edwintorok at gmail dot com 2010-03-09 13:01 ------- (In reply to comment #3) > Please test a more recent version from the 4.4 branch (and trunk if possible). >
Ok, I found gcc 4.4.3 on gcc200 and it still produces wrong code: $ /opt/cfarm/release/4.4.3/bin/gcc -v Using built-in specs. Target: sparc64-unknown-linux-gnu Configured with: ../gcc-4.4.3/configure --prefix=/opt/cfarm/release/4.4.3 --disable-werror --enable-languages=c,c++,fortran,ada --enable-__cxa_atexit --disable-nls --enable-threads=posix --with-gmp=/opt/cfarm/gmp-4.2.4 --with-mpfr=/opt/cfarm/mpfr-2.4.2 --with-cpu=v8 --disable-multilib Thread model: posix gcc version 4.4.3 (GCC) $ /opt/cfarm/release/4.4.3/bin/gcc -O2 -fPIC hh.c $ ./a.out Aborted It seems to be a problem only when creating 32-bit code, -m64 works fine: $ /opt/cfarm/release/4.4.3-64/bin/gcc -O2 -fPIC -m64 hh.c $./a.out And -m32 aborts of course: $ /opt/cfarm/release/4.4.3-64/bin/gcc -O2 -fPIC -m32 hh.c $./a.out /opt/cfarm/release/4.4.3-64/bin/gcc -v Using built-in specs. Target: sparc64-unknown-linux-gnu Configured with: ../gcc-4.4.3/configure --prefix=/opt/cfarm/release/4.4.3-64 --disable-werror --enable-languages=c,c++,fortran,ada --enable-__cxa_atexit --disable-nls --enable-threads=posix --with-gmp=/opt/cfarm/gmp-4.2.4-64 --with-mpfr=/opt/cfarm/mpfr-2.4.2-64 Thread model: posix gcc version 4.4.3 (GCC) Aborted -- edwintorok at gmail dot com changed: What |Removed |Added ---------------------------------------------------------------------------- Known to fail|4.4.1 |4.4.3 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43297