Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759414AbYHHUqd (ORCPT ); Fri, 8 Aug 2008 16:46:33 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752557AbYHHUqZ (ORCPT ); Fri, 8 Aug 2008 16:46:25 -0400 Received: from gw.goop.org ([64.81.55.164]:34767 "EHLO mail.goop.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752464AbYHHUqZ (ORCPT ); Fri, 8 Aug 2008 16:46:25 -0400 Message-ID: <489CB08F.9030902@goop.org> Date: Fri, 08 Aug 2008 13:46:07 -0700 From: Jeremy Fitzhardinge User-Agent: Thunderbird 2.0.0.16 (X11/20080723) MIME-Version: 1.0 To: Adrian Bunk CC: Mark McLoughlin , xen-devel@lists.xensource.com, Eduardo Habkost , Stephen Tweedie , linux-kernel@vger.kernel.org, Simon Horman , "H. Peter Anvin" , Ingo Molnar , Thomas Gleixner , Dhaval Giani Subject: [PATCH] x86: work around gcc 3.4.x bug References: <20080808050429.GA8473@verge.net.au> <489BE9C3.2010006@goop.org> <20080808080155.GA1992@cs181140183.pp.htv.fi> <489C6485.7050009@goop.org> <20080808161331.GF14495@cs181140183.pp.htv.fi> <489C89FA.5000301@goop.org> <20080808183711.GA14495@cs181140183.pp.htv.fi> In-Reply-To: <20080808183711.GA14495@cs181140183.pp.htv.fi> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 983 Lines: 32 gcc-3.4.x crashes when compiling pgd_prepopulate_pmd() when PREALLOCATED_PMDS == 0 and CONFIG_DEBUG_INFO is enabled. This seems to avoid the problem. Signed-off-by: Jeremy Fitzhardinge Cc: Adrian Bunk Cc: Simon Horman Cc: Dhaval Giani --- arch/x86/mm/pgtable.c | 3 +++ 1 file changed, 3 insertions(+) =================================================================== --- a/arch/x86/mm/pgtable.c +++ b/arch/x86/mm/pgtable.c @@ -207,6 +207,9 @@ unsigned long addr; int i; + if (PREALLOCATED_PMDS == 0) /* Work around gcc-3.4.x bug */ + return; + pud = pud_offset(pgd, 0); for (addr = i = 0; i < PREALLOCATED_PMDS; -- 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/