public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/43297]  New: [4.3 regression] sparc64 -O2 -fPIC breaks htmlnorm.c
@ 2010-03-08 21:02 edwintorok at gmail dot com
  2010-03-08 21:03 ` [Bug tree-optimization/43297] " edwintorok at gmail dot com
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: edwintorok at gmail dot com @ 2010-03-08 21:02 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2010-09-19 12:17 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-08 21:02 [Bug tree-optimization/43297] New: [4.3 regression] sparc64 -O2 -fPIC breaks htmlnorm.c edwintorok at gmail dot com
2010-03-08 21:03 ` [Bug tree-optimization/43297] " edwintorok at gmail dot com
2010-03-08 21:10 ` [Bug tree-optimization/43297] [4.4 regression] " ebotcazou at gcc dot gnu dot org
2010-03-09 12:31 ` [Bug target/43297] " rguenth at gcc dot gnu dot org
2010-03-09 13:01 ` edwintorok at gmail dot com
2010-04-30  8:58 ` jakub at gcc dot gnu dot org
2010-07-09 10:25 ` ebotcazou at gcc dot gnu dot org
2010-09-18  8:48 ` ebotcazou at gcc dot gnu dot org
2010-09-19 12:08 ` ebotcazou at gcc dot gnu dot org
2010-09-19 12:17 ` ebotcazou at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).