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: 26 Feb 2007 07:54:52 -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 #16 from rwgk at yahoo dot com 2007-02-26 07:54 -------
Created an attachment (id=13110)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13110&action=view)
minimal reproducer
I got it down to 29 lines. There aren't any includes, defines are typedefs
left.
Attempts to further reduce the code change the result.
The command line I used during the reduction process was:
g++ -fPIC -O3 dbg_minimal.cpp && ./a.out ; echo $status ; g++ -fPIC -O0
dbg_minimal.cpp && ./a.out ; echo $status
The resulting output is:
0
1
Here 0 indicates failure.
I really hope this helps you pin-pointing the bug!
For completeness:
% g++ --version
g++ (GCC) 4.2.0 20070225 (prerelease)
This is SVN revision 122315.
--
rwgk at yahoo dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #12945|0 |1
is obsolete| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30567