Subject: Re: FYI: egcs on mips stable...
To: Castor Fu <castor@geocast.net>
From: Simon Burge <simonb@telstra.com.au>
List: tech-toolchain
Date: 11/12/1998 11:33:03
On Wed, 28 Oct 1998 23:17:35 -0800 (PST)  Castor Fu wrote:

> > Todd has some trivial changes to gnu/usr.bin/egcs/common/Makefile, and
> > some fixups to gnu/dist/gcc/config/mips/netbsd.h. Plus Castor Fu's
> > patch. I can PR if anyone wants them before they're in the tree.
> 
> One thing which I noticed is that the netbsd.h files end up removing
> the notification of '-G' as an option which takes an argument.  That's
> why "-G0" works but "-G" "0" does not.  This seems to violate the principle
> of least surprise.
> 
> I wasn't sure which is the more appropriate place to add this, though.
> I wouldn't be surprised, for example, if the alpha platform might also
> use this flag.
> 
> It's kind of a trivial diff. . . 
> 
> 	cvs diff -r NETBSD_DIST netbsd.h   
> 	Index: netbsd.h
> 	===================================================================
> 	RCS file: /geo/cvsroot/nb/usr/src/gnu/dist/gcc/config/netbsd.h,v
> 	retrieving revision 1.1.1.2
> 	retrieving revision 1.2
> 	diff -r1.1.1.2 -r1.2
> 	77a78,79
> 	> /* -R FILENAME -- FILENAME provides symbols and addresses for relocation */
> 	> /* -G NUM     -- objects up to size NUM placed in 'small' segment */
> 	81c83
> 	<    || (CHAR) == 'R')
> 	---
> 	>    || (CHAR) == 'R' || (CHAR) == 'G')

Did anything ever become of this?  At the moment, the pmax kernel
Makefile uses "-G 0".  Either that changes to "-G0" or something
akin to Castor's suggestion needs to be implemented.

Simon.