Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752743AbZIMUN3 (ORCPT ); Sun, 13 Sep 2009 16:13:29 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751488AbZIMUN2 (ORCPT ); Sun, 13 Sep 2009 16:13:28 -0400 Received: from terminus.zytor.com ([198.137.202.10]:38068 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751350AbZIMUN1 (ORCPT ); Sun, 13 Sep 2009 16:13:27 -0400 Message-ID: <4AAD5213.8060205@zytor.com> Date: Sun, 13 Sep 2009 13:12:03 -0700 From: "H. Peter Anvin" User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.1) Gecko/20090814 Fedora/3.0-2.6.b3.fc11 Thunderbird/3.0b3 MIME-Version: 1.0 To: David Daney CC: Ingo Molnar , Linus Torvalds , akpm@linux-foundation.org, linux-kernel@vger.kernel.org, Thomas Gleixner , Ingo Molnar , x86@kernel.org, Roland McGrath Subject: Re: [PATCH 02/10] x86: Convert BUG() to use unreachable() References: <4AA991C1.1050800@caviumnetworks.com> <1252627011-2933-2-git-send-email-ddaney@caviumnetworks.com> <4AA9A031.5000602@zytor.com> <20090911060701.GA18740@elte.hu> <4AAA72F3.9090103@caviumnetworks.com> In-Reply-To: <4AAA72F3.9090103@caviumnetworks.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 883 Lines: 24 On 09/11/2009 08:55 AM, David Daney wrote: > > Perhaps, although with a pre-GCC-4.5 compiler, it would end up adding > the endless loop code to BUG() sites for configurations where the user > has explicitly stated their preference for the code to be as small as > possible (by turning off CONFIG_BUG). > > If that is acceptable, I will prepare another revision of the patch set. > The thing is that without the loop, the compiler will generate the fall-through case code, which may add more code than the loop removes. -hpa -- H. Peter Anvin, Intel Open Source Technology Center I work for Intel. I don't speak on their behalf. -- 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/