From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from terminus.zytor.com ([198.137.202.10]:42130 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760901AbXGYUkb (ORCPT ); Wed, 25 Jul 2007 16:40:31 -0400 Message-ID: <46A7B46C.9020007@zytor.com> Date: Wed, 25 Jul 2007 13:37:00 -0700 From: "H. Peter Anvin" MIME-Version: 1.0 Subject: Re: [PATCH][RFC] getting rid of stupid loop in BUG() References: <21803.1185331847@ocs10w.ocs.com.au> <46A6DB04.3000003@zytor.com> <46A6ECB7.7090208@goop.org> <20070724.232914.56812376.davem@davemloft.net> <20070725171956.GF27237@ftp.linux.org.uk> <46A78B47.1070500@goop.org> <46A7B2BF.4000506@redhat.com> In-Reply-To: <46A7B2BF.4000506@redhat.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-arch-owner@vger.kernel.org To: Chuck Ebbert Cc: Jeremy Fitzhardinge , Al Viro , Linus Torvalds , David Miller , kaos@ocs.com.au, xyzzy@speakeasy.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org List-ID: Chuck Ebbert wrote: > On 07/25/2007 01:41 PM, Jeremy Fitzhardinge wrote: >> I reported it as a gcc bug, but they refused to hear of it. Details at >> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29305 >> > > Wow. > > I especially like "You should plan a better way. " FWIW, at Transmeta we had a local extension to gcc called "__builtin_not_reached()" which we used to tell gcc that an assembly statement would terminate the control flow. Another useful extension was a variant of __builtin_trap() which would create a dummy ELF relocation for the trapping instruction with a target. -hpa