Subject: Re: egcs-1.1.1 (was: Re: kernel panic, tonight's sup)
To: Todd Vierling <tv@pobox.com>
From: Jonathan Stone <jonathan@DSG.Stanford.EDU>
List: current-users
Date: 11/17/1998 10:54:28
>This is because -R isn't in the link_spec for mips, which I'll fix in a bit.
>The stanza is not bogus; it's very correct, and I've made a custom one for
>mips/netbsd.h.  (IOW, "-G 0" should now work.)  For the most part, there are
>_not_ MD switches that need spaces in their arguments.

Yes, but in some cases there are, and in those cases, clobbering them
is bogus. Anyway, thanks for fixing it :).


I still think the cleanest fix is to add a new macro,
      CPUDEP_SWITCH_TAKES_ARGS
with
	#ifndef CPUDEP_SWITCH_TAKES_ARGS
	#define CPUDEP_SWITCH_TAKES_ARGS(char) 0
	#endif

	#undef SWITCH_TAKES_ARG
	#define SWITCH_TAKES_ARG(CHAR) \
          (DEFAULT_SWITCH_TAKES_ARG(CHAR) \
	  || (CHAR) == 'R' || CPUDEP_SWITCH_TAKES_ARGS(CHAR))

and on mips do
	#define CPUDEP_SWITCH_TAKES_ARGS(char) ((CHAR) == 'G')

if we added teh CPUDEP_SWITCH_TAKES_ARGS into the `default' definition
(gcc.c?) , then we could define CPUDEP_SWITCH_TAKES_ARGS in
config/mips/mips.h, Other CPUs with similar flags would ``just work'
with the NeBSD SWITCH_TAKES_ARGS definition, if they copied the same
style.  are there any, though?