lkml.org 
[lkml]   [2008]   [Aug]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] x86: work around gcc 3.4.x bug
On Fri, Aug 08, 2008 at 01:46:07PM -0700, Jeremy Fitzhardinge wrote:
> 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 <jeremy.fitzhardinge@citrix.com>
> Cc: Adrian Bunk <bunk@kernel.org>
> Cc: Simon Horman <horms@verge.net.au>
> Cc: Dhaval Giani <dhaval@linux.vnet.ibm.com>

Hi Jeremy,

This does solve the problem I was seeing on on 3.4.5.

Acked-by: Simon Horman <horms@verge.net.au>

> ---
> 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;
>


\
 
 \ /
  Last update: 2008-08-09 08:33    [W:0.321 / U:0.196 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site