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: unassig...@gcc.gnu.org ReportedBy: ran...@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