Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754892AbZGVN10 (ORCPT ); Wed, 22 Jul 2009 09:27:26 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753194AbZGVN1Z (ORCPT ); Wed, 22 Jul 2009 09:27:25 -0400 Received: from out1.smtp.messagingengine.com ([66.111.4.25]:54858 "EHLO out1.smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752276AbZGVN1Z (ORCPT ); Wed, 22 Jul 2009 09:27:25 -0400 X-Sasl-enc: vCpC/0dyqwa8BwEpMjnksBVkLwBooVjTH9xwrZsM9YOo 1248269244 Date: Wed, 22 Jul 2009 10:27:21 -0300 From: Henrique de Moraes Holschuh To: Krzysztof Oledzki Cc: Linus Torvalds , Troy Moure , Greg KH , Linux Kernel Mailing List , Andrew Morton , stable@kernel.org, lwn@lwn.net, Ian Lance Taylor Subject: Re: Linux 2.6.27.27 Message-ID: <20090722132721.GA7390@khazad-dum.debian.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-GPG-Fingerprint: 1024D/1CDB0FE3 5422 5C61 F6B7 06FB 7E04 3738 EE25 DE3F 1CDB 0FE3 User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1435 Lines: 47 On Wed, 22 Jul 2009, Krzysztof Oledzki wrote: > BTW: here is a simple testcase for this bug: > > --- fno-strict-overflow-fixed-bug.c --- > #include > > int main() { > > unsigned char i; > > for (i = 0; i < 128; i++) > printf("loop %u\n", i); > > return 0; > } > --- cut here --- > > The code should be compiled with: > cc -o fno-strict-overflow-fixed-bug -Os -fno-strict-overflow fno-strict-overflow-fixed-bug.c > or: > cc -o fno-strict-overflow-fixed-bug -O2 -fno-strict-overflow fno-strict-overflow-fixed-bug.c > > This bug does not exist with -O1 or if the loop is controlled by "i > < 127" or "i < 129". Thank you. Debian stable, ia32, gcc 4.2.4-6: BUG Debian stable, ia32, gcc 4.3.2-1.1: no bug (default) Debian unstable, ia32, gcc 4.2.4-6: BUG Debian unstable, ia32, gcc 4.3.3-14: no bug (default) Someone else already tested gcc 4.4.0, as no bug. I will file bugs against Debian gcc-4.2... -- "One disk to rule them all, One disk to find them. One disk to bring them all and in the darkness grind them. In the Land of Redmond where the shadows lie." -- The Silicon Valley Tarot Henrique Holschuh -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/