This is the mail archive of the
mailing list for the GCC project.
Re: [PATCH] rs6000: Disable generation of lwa in 32-bit mode
- From: Segher Boessenkool <segher at kernel dot crashing dot org>
- To: Alan Modra <amodra at gmail dot com>
- Cc: Peter Bergner <bergner at vnet dot ibm dot com>, gcc at gcc dot gnu dot org, dje dot gcc at gmail dot com
- Date: Sun, 28 Oct 2012 06:50:53 +0100
- Subject: Re: [PATCH] rs6000: Disable generation of lwa in 32-bit mode
- References: <firstname.lastname@example.org> <20121026043034.GD12025@bubble.grove.modra.org> <1351261718.29770.9.camel@otta> <FB937F3F-D07F-4CB5-BA86-A690023AF478@kernel.crashing.org> <20121027231724.GH12025@bubble.grove.modra.org>
some (20040709-2.c, etc.) fail with a linker error now, instead of
Hmm, packed structs. If gcc is generating mis-aligned accesses using
lwa or ld, that would be another TARGET_64BIT vs TARGET_POWERPC64
bug, wouldn't it?
I have analysed it, patch on the way. The problem is LO_SUMs of
misaligned symbols; we never get those in practice on 64-bit
because things go via the TOC, but the problem is there in theory
for 64-bit as well.