On sparc64 gcc 4.4.1 -O3 -fPIC breaks ClamAV's htmlnorm.c. To reproduce bug: $ /opt/cfarm/release/4.4.1/bin/gcc -O3 -fPIC hh.c $ ./a.out Aborted
On the attached testcase -O2 -fPIC breaks too (on ClamAV's htmlnorm only -O3 breaks): $ /opt/cfarm/release/4.4.1/bin/gcc -O2 -fPIC hh.c $ ./a.out Aborted Working flags/compilers: $ /opt/cfarm/release/4.4.1/bin/gcc -O1 -fPIC hh.c $ ./a.out $ /opt/cfarm/release/4.4.1/bin/gcc -O2 hh.c $ ./a.out $ /opt/cfarm/release/4.4.1/bin/gcc -O3 hh.c $ ./a.out $ /opt/cfarm/release/4.3.3/bin/gcc -O3 -fPIC hh.c $ ./a.out $ /opt/cfarm/release/4.3.3/bin/gcc -O2 -fPIC hh.c $ ./a.out $ gcc -O3 -fPIC hh.c $ ./a.out $ gcc -O2 -fPIC hh.c $ ./a.out System: Linux gcc54 2.6.18-6-sparc64 #1 Sat Dec 27 11:05:53 UTC 2008 sparc64 GNU/Linux Buggy compiler version: $ /opt/cfarm/release/4.4.1/bin/gcc -v Using built-in specs. Target: sparc64-unknown-linux-gnu Configured with: ../gcc-4.4.1/configure --enable-languages=all,ada --enable-__cxa_atexit --disable-nls --with-mpfr=/opt/cfarm/mpfr-2.4.1 --with-gmp=/opt/cfarm/gmp-4.2.4 --prefix=/opt/cfarm/release/4.4.1 --with-cpu=v8 Thread model: posix gcc version 4.4.1 (GCC) Working compilers: $ /opt/cfarm/release/4.3.3/bin/gcc -v Using built-in specs. Target: sparc64-unknown-linux-gnu Configured with: ../gcc-4.3.3/configure --prefix=/opt/cfarm/release/4.3.3 --enable-__cxa_atexit --disable-nls --enable-threads=posix --with-mpfr=/opt/cfarm/mpfr-2.3.2 --with-cpu=v8 --enable-languages=c,ada Thread model: posix gcc version 4.3.3 (GCC) $ gcc -v Using built-in specs. Target: sparc-linux-gnu Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr --with-cpu=v8 --enable-checking=release sparc-linux-gnu Thread model: posix gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21) -- Summary: [4.3 regression] sparc64 -O2 -fPIC breaks htmlnorm.c Product: gcc Version: 4.4.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: edwintorok at gmail dot com GCC build triplet: sparc64-unknown-linux-gnu GCC host triplet: sparc64-unknown-linux-gnu GCC target triplet: sparc64-unknown-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43297