]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
x86: work around gcc 3.4.x bug
authorJeremy Fitzhardinge <jeremy@goop.org>
Fri, 8 Aug 2008 20:46:07 +0000 (13:46 -0700)
committerIngo Molnar <mingo@elte.hu>
Mon, 11 Aug 2008 16:44:02 +0000 (18:44 +0200)
commitcf3e50501259f9a7cb108a69c3e1b912135628f6
treec4df8af1ad310728845b2a8f8c5153210cb48f2d
parentfb6bef8002d54a9c3062abc281893ec7c896d3ce
x86: work around gcc 3.4.x bug

Simon Horman reported that gcc-3.4.x crashes when compiling
pgd_prepopulate_pmd() when PREALLOCATED_PMDS == 0 and CONFIG_DEBUG_INFO
is enabled.

Adding an extra check for PREALLOCATED_PMDS == 0 [which is compiled out
by gcc] seems to avoid the problem.

Reported-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Acked-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/mm/pgtable.c