Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755343Ab0KOKEm (ORCPT ); Mon, 15 Nov 2010 05:04:42 -0500 Received: from sunsite.ms.mff.cuni.cz ([195.113.15.26]:41572 "EHLO sunsite.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754061Ab0KOKEm (ORCPT ); Mon, 15 Nov 2010 05:04:42 -0500 Date: Mon, 15 Nov 2010 11:03:32 +0100 From: Jakub Jelinek To: Linus Torvalds Cc: James Cloos , Linux Kernel Mailing List , Andreas Schwab , Andi Kleen , Michael Matz , Dave Korn , Richard Guenther , gcc@gcc.gnu.org, Jim Bos Subject: Re: gcc 4.5.1 / as 2.20.51.0.11 miscompiling drivers/char/i8k.c ? Message-ID: <20101115100331.GG2583@sunsite.ms.mff.cuni.cz> Reply-To: Jakub Jelinek References: <877hgorrj1.fsf@basil.nowhere.org> <4CD843DC.10106@gmail.com> <20101109134816.GB29433@basil.fritz.box> <4CD97A3D.1040602@xs4all.nl> <20101115085605.GE2583@sunsite.ms.mff.cuni.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20101115085605.GE2583@sunsite.ms.mff.cuni.cz> User-Agent: Mutt/1.5.19 (2009-01-05) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1208 Lines: 25 On Mon, Nov 15, 2010 at 09:56:05AM +0100, Jakub Jelinek wrote: > On Sun, Nov 14, 2010 at 07:21:50PM -0800, Linus Torvalds wrote: > > So when Richard Gunther says "a memory clobber doesn't cover automatic > > storage", to me that very clearly spells "gcc is buggy as hell". > > Because automatic storage with its address taken _very_ much gets > > clobbered by things like memset etc. If the compiler doesn't > > understand that, the compiler is just broken. > > I'll leave the discussion about meaning of "memory" clobber aside to > Richard, And for this the starting point should be what has been requested, i.e. preprocessed source + gcc options + gcc version and some hints what actually misbehaves (with the , "+m" (*regs) change reverted) in gcc bugzilla. Only with that we can actually look at what has been happening, see whether it is the tree optimizations or RTL and which one makes a difference. If I've missed a PR about this I apologize. Jakub -- 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/