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