Changes to PPC Linux required for GCC 3.1
Tom Rini
trini at kernel.crashing.org
Thu Dec 6 04:37:28 EST 2001
On Wed, Dec 05, 2001 at 10:18:26AM -0600, Corey Minyard wrote:
>
> Franz Sirl wrote:
>
> >
> >I've done
> >
> >-#define RELOC(x) (*PTRRELOC(&(x)))
> >+#define RELOC(x) (*({ typeof(x) * __ptr = PTRRELOC(&(x));
> >__asm__ ("" : "=r" (__ptr) : "0" (__ptr)); __ptr;}))
> >
> >a while ago in
> ><http://source.mvista.com/pipermail/linuxppc-commit/2001-September/000729.html>,
> >seems nobody applied it so far.
>
> Ok. It needs to be propped.
I think the reason this wasn't applied is that Paul said something about
thiws being horriyingly ugly. Corey, can you post a patch that changes
RELOC(x) into a function and nothing else? :)
--
Tom Rini (TR1265)
http://gate.crashing.org/~trini/
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
More information about the Linuxppc-dev
mailing list