From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27823 invoked by alias); 20 Sep 2006 20:44:33 -0000 Received: (qmail 27743 invoked by uid 48); 20 Sep 2006 20:44:25 -0000 Date: Wed, 20 Sep 2006 20:44:00 -0000 Message-ID: <20060920204425.27742.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug other/28230] -O2 -fwrapv miscompiles gcc, binutils, gzip. In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "pluto at agmk dot net" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2006-09/txt/msg01939.txt.bz2 List-Id: ------- Comment #8 from pluto at agmk dot net 2006-09-20 20:44 ------- (In reply to comment #7) > 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 further investigation shows that only `-O1 -ftree-vrp -fwrapv' miscompiles the gzip/inflate.o. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28230