xen-devel
[Xen-devel] Re: Allow compile with CONFIG_DEBUG_INFO=y, X86_PAE not set
To: |
Jeremy Fitzhardinge <jeremy@xxxxxxxx> |
Subject: |
[Xen-devel] Re: Allow compile with CONFIG_DEBUG_INFO=y, X86_PAE not set on gcc 3.4.5 |
From: |
Adrian Bunk <bunk@xxxxxxxxxx> |
Date: |
Fri, 8 Aug 2008 11:01:55 +0300 |
Cc: |
Mark McLoughlin <markmc@xxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx, Eduardo Habkost <ehabkost@xxxxxxxxxx>, Stephen Tweedie <sct@xxxxxxxxxx>, linux-kernel@xxxxxxxxxxxxxxx, Simon Horman <horms@xxxxxxxxxxxx>, "H. Peter Anvin" <hpa@xxxxxxxxx>, Ingo Molnar <mingo@xxxxxxx>, Thomas Gleixner <tglx@xxxxxxxxxxxxx>, Dhaval Giani <dhaval@xxxxxxxxxxxxxxxxxx> |
Delivery-date: |
Fri, 08 Aug 2008 01:03:51 -0700 |
Envelope-to: |
www-data@xxxxxxxxxxxxxxxxxxx |
In-reply-to: |
<489BE9C3.2010006@xxxxxxxx> |
List-help: |
<mailto:xen-devel-request@lists.xensource.com?subject=help> |
List-id: |
Xen developer discussion <xen-devel.lists.xensource.com> |
List-post: |
<mailto:xen-devel@lists.xensource.com> |
List-subscribe: |
<http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe> |
List-unsubscribe: |
<http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe> |
References: |
<20080808050429.GA8473@xxxxxxxxxxxx> <489BE9C3.2010006@xxxxxxxx> |
Sender: |
xen-devel-bounces@xxxxxxxxxxxxxxxxxxx |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
On Thu, Aug 07, 2008 at 11:37:55PM -0700, Jeremy Fitzhardinge wrote:
> Simon Horman wrote:
>> Hi,
>>
>> It appears that "x86: preallocate and prepopulate separately"
>> (d8d5900ef8afc562088f8470feeaf17c4747790f) introduced a minor regression.
>> The build fails on gcc 3.4.5 if CONFIG_DEBUG_INFO=y (that is gcc is
>> called with -g) and X86_PAE not set.
>>
>> There was previously some discussion of this without resolution.
>> http://lkml.org/lkml/2008/7/18/250
>>
>> arch/x86/mm/pgtable.c: In function `pgd_prepopulate_pmd':
>> arch/x86/mm/pgtable.c:222: internal compiler error: in remove_insn, at
>> emit-rtl.c:3746
>> Please submit a full bug report,
>> with preprocessed source if appropriate.
>> See <URL:http://gcc.gnu.org/bugs.html> for instructions.
>>
>> # i686-unknown-linux-gnu-gcc --version
>> i686-unknown-linux-gnu-gcc (GCC) 3.4.5
>>
>> My investigations seem to show that gcc 3.4.5 can't cope with the following
>> construct:
>>
>> for (i = 0; i < 0; i++)
>> ...
>>
>> or more specifically:
>>
>> for (i = 0; i < PREALLOCTED_PMDS; i++)
>> ...
>>
>> when PREALLOCTED_PMDS is 0. That is, when X86_PAE is not set.
>>
>> This patch resolves this problem by moving the relevant code inside
>> #define X86_PAE and providing dummy functions outside !X86_PAE.
>>
>> Signed-off-by: Simon Horman <horms@xxxxxxxxxxxx>
>>
>
> We resolved the other report by saying that gcc 3.4.4 is broken. It
> seems 3.4.5 is as well. Could you just update the compiler? I'd rather
> not have to clutter the code with more ifdefs if we can possibly avoid
> it.
>...
CONFIG_DEBUG_INFO=y is why I never hit it before.
It does not seem to be just one dodgy Redhat compiler (as I assumed in
the Bugzilla entry) but the whole 3.4 series of gcc which makes our
resolution of saying that this specific compiler is broken invalid.
Considering that we officially support all compilers >= 3.2 this is just
one more case where we have to add to the kernel a workaround for a
broken compiler.
After all, we already have 2 or 3 workarounds for new 2.6.27-rc
breakages with gcc 3.2 included or at least submitted.
cu
Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] Allow compile with CONFIG_DEBUG_INFO=y, X86_PAE not set on gcc 3.4.5, Simon Horman
- [Xen-devel] Re: Allow compile with CONFIG_DEBUG_INFO=y, X86_PAE not set on gcc 3.4.5, Jeremy Fitzhardinge
- [Xen-devel] Re: Allow compile with CONFIG_DEBUG_INFO=y, X86_PAE not set on gcc 3.4.5, Simon Horman
- [Xen-devel] Re: Allow compile with CONFIG_DEBUG_INFO=y, X86_PAE not set on gcc 3.4.5,
Adrian Bunk <=
- Re: [Xen-devel] Re: Allow compile with CONFIG_DEBUG_INFO=y, X86_PAE not set on gcc 3.4.5, Jeremy Fitzhardinge
- Re: [Xen-devel] Re: Allow compile with CONFIG_DEBUG_INFO=y, X86_PAE not set on gcc 3.4.5, Adrian Bunk
- Re: [Xen-devel] Re: Allow compile with CONFIG_DEBUG_INFO=y, X86_PAE not set on gcc 3.4.5, Jeremy Fitzhardinge
- Re: [Xen-devel] Re: Allow compile with CONFIG_DEBUG_INFO=y, X86_PAE not set on gcc 3.4.5, Adrian Bunk
- [Xen-devel] [PATCH] x86: work around gcc 3.4.x bug, Jeremy Fitzhardinge
- [Xen-devel] Re: [PATCH] x86: work around gcc 3.4.x bug, Simon Horman
- [Xen-devel] Re: [PATCH] x86: work around gcc 3.4.x bug, Ingo Molnar
|
|
|