Am 17.10.2010 um 00:57 schrieb Andreas Färber:
[snip]
I have 4.2.4 powerpc64-linux-gnu compiled!
Among many other errors I tripped over this:
CC target/kernel/primitives.o cc1: warnings being treated as errors In file included from ../kernel/primitives.c:25: ../kernel/internal.c:53: warning: cast from pointer to integer of different size ../kernel/internal.c:53: error: initializer element is not constant ../kernel/internal.c:53: error: (near initialization for 't[2]')
Corresponding code is:
#ifndef FCOMPILER /* instead of pointing to an explicit 0 variable we * point behind the pointer. */ static ucell t[] = { DOCOL, 0, (ucell)(t+3), 0 }; static ucell *trampoline = t; #endif
The warning goes away if I cast to (unsigned long) first, but the initialization error remains. In powerpc-elf-gcc 4.4+ this didn't surface. Suggestions how to fix?
Andreas