Subject: Re: egcs-1.1.2 and -fPIC
To: None <Simon.Levitt@uk.worldpay.com>
From: Richard Earnshaw <rearnsha@arm.com>
List: port-arm32
Date: 08/04/1999 13:52:46
> Hiya,
> 
> I decided to attempt to build egcs-1.1.2 on my NetBSD 1.4 system last 
> night, and whilst the compliation seems to have completed successfully 
> (I didn't hang around to watch it all!) when I try and compile position 
> independant code (-fPIC) cc1 gives a warning about it not being 
> supported.
> 
> Having looked at the code, I've found the message in 
> gcc/config/arm/arm.c:313 - what I'm wondering, not having time this 
> morning to see if stuff worked (and now looking at the code and seeing 
> it is just outputting the message), is whether the warning is making 
> any difference on NetBSD/arm32, or if its aimed at RiscOS? 
> 
> I've looked over ftp.netbsd.org/pub/NetBSD/arch/arm32 and can't see any 
> obvious patches I shoud apply...
> 

Don't try to use egcs-1.1.2 for PIC code.  There were some bugs in it that 
were fixed in the NetBSD tree, but which didn't make it into the egcs tree 
in time.  They are fixed (hopefully) in gcc-2.95 which is now out.

Richard.