Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753024AbZGVPgf (ORCPT ); Wed, 22 Jul 2009 11:36:35 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751883AbZGVPgf (ORCPT ); Wed, 22 Jul 2009 11:36:35 -0400 Received: from smtp-out.google.com ([216.239.45.13]:52351 "EHLO smtp-out.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751629AbZGVPge (ORCPT ); Wed, 22 Jul 2009 11:36:34 -0400 DomainKey-Signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns; h=to:cc:subject:references:from:date:in-reply-to:message-id: user-agent:mime-version:content-type:x-system-of-record; b=tS092LPjCmV+wevS5RMKAxFcyDkhJU6yHQ8kt6liPSFq/ly57fKP+5Wyl5e8u+n/B 6XYGwTo9FeHt/X+ujMSbw== To: Krzysztof Oledzki Cc: Linus Torvalds , Troy Moure , Greg KH , Linux Kernel Mailing List , Andrew Morton , stable@kernel.org, lwn@lwn.net Subject: Re: Linux 2.6.27.27 References: <20090720040655.GA11940@kroah.com> <4A645A45.9060509@ans.pl> <20090720151008.GC10015@suse.de> From: Ian Lance Taylor Date: Wed, 22 Jul 2009 08:36:21 -0700 In-Reply-To: (Krzysztof Oledzki's message of "Wed\, 22 Jul 2009 13\:49\:58 +0200 \(CEST\)") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-System-Of-Record: true Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 697 Lines: 27 Krzysztof Oledzki writes: > 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 --- I can confirm that this is broken in gcc 4.2 using -fno-strict-overflow, and works correctly in gcc 4.3 and later. Sigh. Ian -- 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/