From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from terminus.zytor.com ([198.137.202.10]:53733 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752994AbXGXTEn (ORCPT ); Tue, 24 Jul 2007 15:04:43 -0400 Message-ID: <46A64C7F.5040508@zytor.com> Date: Tue, 24 Jul 2007 12:01:19 -0700 From: "H. Peter Anvin" MIME-Version: 1.0 Subject: Re: [PATCH][RFC] getting rid of stupid loop in BUG() References: <20070724153916.GS21668@ftp.linux.org.uk> <46A62F35.2000501@goop.org> <20070724171455.GT21668@ftp.linux.org.uk> <46A636BB.7020706@zytor.com> <46A64BDD.4080309@goop.org> In-Reply-To: <46A64BDD.4080309@goop.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-arch-owner@vger.kernel.org To: Jeremy Fitzhardinge Cc: Al Viro , Linus Torvalds , linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org List-ID: Jeremy Fitzhardinge wrote: > H. Peter Anvin wrote: >> Could it be a gcc version difference? >> > > Likely. Well, we can always try it and see how much crap turns up. If > gcc keeps quiet about it, its certainly an improvement over the dummy loop. > > J You could do both, actually. If gcc sees the end without it, the loop will simply get dead-code eliminated. -hpa