This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RE: building 3.4.0 for powerpc-elf target
- From: "Dave Murphy" <wintermute2k4 at ntlworld dot com>
- To: "Jim Wilson" <wilson at specifixinc dot com>,"Dave Murphy" <wintermute2k4 at ntlworld dot com>
- Cc: <gcc at gcc dot gnu dot org>
- Date: Sat, 15 May 2004 19:20:46 +0100
- Subject: RE: building 3.4.0 for powerpc-elf target
> -----Original Message-----
> Subject: Re: building 3.4.0 for powerpc-elf target
> Dave Murphy wrote:
> > C:/DOCUME~1/DAVEM~1.NEU/LOCALS~1/Temp/ccszaaaa.s:41: Error: unsupported
> > relocation against null
>
> The libgcc2.s file has obvious problems.
> stw 0,12((null))
> (null) isn't a valid register name. It looks like your C library prints
> null pointers as "(null)".
>
> I can build a x86-linux hosted powerpc-elf cross compiler which works
> OK. I didn't use any configure options or set any environment flags.
Building under linux works fine for me too.
> It appears that something got miscompiled on your end. I suggest that
> you try debugging it. Put a break point in print_operand and step
> through it. The error is probably much earlier though. I suspect that
> the reg_names array is not getting initialized correctly. It gets
> initialized with a constant initializer in regclass.c. Maybe it is
> getting clobbered at some point while the compiler is running.
I've since managed to fix this problem by using the MinGW patches. Currently
I'm not 100% sure what actually fixed the issue but I believe it may have
been related to the -save-temps issue as per
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=5620 When I used -save-temps to
generate the pre-processed source for my original query there wasn't an
error and I hadn't found a 3.4 suitable variant of the patch at that point.
Dave