This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/30567] -fPIC -O3 optimizer bug (32-bit target only)
- From: "rwgk at yahoo dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Jan 2007 20:03:34 -0000
- Subject: [Bug c++/30567] -fPIC -O3 optimizer bug (32-bit target only)
- References: <bug-30567-3137@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from rwgk at yahoo dot com 2007-01-28 20:03 -------
I've repeated my test with
g++ (GCC) 4.2.0 20070128 (prerelease)
SVN revision: 121258
on three platforms:
x86_64 Fedora Core release 5 (Bordeaux)
% g++ -fPIC -O3 dbg_gcc_bugzilla_30567.cpp
% ./a.out
1
i686 Fedora Core release 4 (Stentz)
% g++ -fPIC -O3 dbg_gcc_bugzilla_30567.cpp
% ./a.out
0
Fedora Core release 6 (Zod)
% g++ -fPIC -O3 dbg_gcc_bugzilla_30567.cpp
% ./a.out
0
I.e. 64-bit is still OK, 32-bit is still broken.
Could someone please try to reproduce with the current version of the
4.2 branch? I'm worried that 4.2 is released with this bug, and that we
have to deal with it for years to come...
BTW: the system gcc versions are:
x86_64 Fedora Core release 5 (Bordeaux)
g++ (GCC) 4.1.0 20060304 (Red Hat 4.1.0-3)
i686 Fedora Core release 4 (Stentz)
g++ (GCC) 4.0.0 20050519 (Red Hat 4.0.0-8)
i686 Fedora Core release 6 (Zod)
g++ (GCC) 4.1.1 20061011 (Red Hat 4.1.1-30)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30567