[Bug c++/30567] -fPIC -O3 optimizer bug (32-bit target only)
rwgk at yahoo dot com
gcc-bugzilla@gcc.gnu.org
Sun Jan 28 20:03:00 GMT 2007
------- 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
More information about the Gcc-bugs
mailing list