This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/54972] New: O2 breaks something in 4.6.3
- From: "random at adriver dot ru" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 18 Oct 2012 10:58:56 +0000
- Subject: [Bug c++/54972] New: O2 breaks something in 4.6.3
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54972
Bug #: 54972
Summary: O2 breaks something in 4.6.3
Classification: Unclassified
Product: gcc
Version: 4.6.3
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: random@adriver.ru
Created attachment 28480
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28480
.ii file
compiling lzo_gcc_test.cpp with parameters:
g++ -o lzo lzo_gcc_test.cpp -llzo2
running binary produces:
rv= 0
uncompressed size= 73
UNC2: 'This is uncompressed
zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz',
as expected.
adding -O2 to parameters results in
rv= 0
uncompressed size= 73
UNC2: '',
at this point UNC2 contains rubbish