This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/54972] New: O2 breaks something in 4.6.3


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]