[Bug target/43297] [4.4 regression] -O2 -fPIC breaks htmlnorm.c
--- Comment #6 from ebotcazou at gcc dot gnu dot org 2010-09-19 12:07 --- Created an attachment (id=21834) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21834action=view) More reduced testcase -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43297
[Bug target/43297] [4.4 regression] -O2 -fPIC breaks htmlnorm.c
--- Comment #7 from ebotcazou at gcc dot gnu dot org 2010-09-19 12:16 --- Fixed in latest 4.4.x snapshot: ebotca...@grobluk:~$ gcc -v Using built-in specs. Target: sparc64-unknown-linux-gnu Configured with: /home/ebotcazou/src-4.4/configure --prefix=/home/ebotcazou/install-4.4 --enable-languages=c --with-cpu=v8 Thread model: posix gcc version 4.4.5 20100914 (prerelease) (GCC) -- ebotcazou at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNED|RESOLVED Known to work|4.3.3 |4.3.3 4.5.1 4.6.0 Resolution||FIXED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43297
[Bug target/43297] [4.4 regression] -O2 -fPIC breaks htmlnorm.c
--- Comment #5 from ebotcazou at gcc dot gnu dot org 2010-09-18 08:48 --- Investigating. -- ebotcazou at gcc dot gnu dot org changed: What|Removed |Added CC|ebotcazou at gcc dot gnu dot| |org | AssignedTo|unassigned at gcc dot gnu |ebotcazou at gcc dot gnu dot |dot org |org Status|NEW |ASSIGNED Last reconfirmed|2010-07-09 10:25:26 |2010-09-18 08:48:04 date|| http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43297
[Bug target/43297] [4.4 regression] -O2 -fPIC breaks htmlnorm.c
-- ebotcazou at gcc dot gnu dot org changed: What|Removed |Added Status|WAITING |NEW Ever Confirmed|0 |1 Last reconfirmed|-00-00 00:00:00 |2010-07-09 10:25:26 date|| http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43297
[Bug target/43297] [4.4 regression] -O2 -fPIC breaks htmlnorm.c
-- jakub at gcc dot gnu dot org changed: What|Removed |Added Target Milestone|4.4.4 |4.4.5 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43297
[Bug target/43297] [4.4 regression] -O2 -fPIC breaks htmlnorm.c
--- Comment #3 from rguenth at gcc dot gnu dot org 2010-03-09 12:30 --- Please test a more recent version from the 4.4 branch (and trunk if possible). -- rguenth at gcc dot gnu dot org changed: What|Removed |Added Status|UNCONFIRMED |WAITING Known to fail||4.4.1 Known to work||4.3.3 Target Milestone|--- |4.4.4 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43297
[Bug target/43297] [4.4 regression] -O2 -fPIC breaks htmlnorm.c
--- 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