This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/54972] O2 breaks something in 4.6.3
- From: "schwab at linux-m68k dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 18 Oct 2012 11:58:02 +0000
- Subject: [Bug c++/54972] O2 breaks something in 4.6.3
- Auto-submitted: auto-generated
- References: <bug-54972-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54972
Andreas Schwab <schwab@linux-m68k.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
--- Comment #4 from Andreas Schwab <schwab@linux-m68k.org> 2012-10-18 11:58:02 UTC ---
You need -Wstrict-aliasing=2. Most likely lzo1x_decompress_safe overwrites the
beginning of dest when it tries to stuff a lzo_uint into the space allocated
for dest_len. Use correct types.