[Bug other/28230] -O2 -fwrapv miscompiles gcc, binutils, gzip.

pluto at agmk dot net gcc-bugzilla@gcc.gnu.org
Tue Sep 19 13:08:00 GMT 2006



------- Comment #7 from pluto at agmk dot net  2006-09-19 13:08 -------
and one more misscompiled program -> gzip-1.3.5.
this time 4.1.2 with -O2 -fwrapv produces wrong code.

$ dd if=/dev/zero of=foo count=10
$ gzip foo
$ gzip -d foo.gz
$ gzip: foo.gz: invalid compressed data--format violated


-- 

pluto at agmk dot net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|4.2.0                       |4.2.0 4.1.2
      Known to work|4.1.2                       |
            Summary|ICE during bootstrap /      |-O2 -fwrapv miscompiles gcc,
                   |binutils miscompilation (-O2|binutils, gzip.
                   |-fwrapv issue)              |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28230



More information about the Gcc-bugs mailing list