This is the mail archive of the
mailing list for the GCC project.
Re: Miscellaneous options fixes
On Sun, 8 Aug 2010, Nathan Froyd wrote:
> On Mon, Aug 02, 2010 at 04:43:30PM +0000, Joseph S. Myers wrote:
> > * The SWITCH_TAKES_ARG support for -G n on iq2000 was an unnecessary
> > copy from some other target since iq2000 doesn't support the -G
> > option.
> This bit breaks building libgcc for iq2000-elf because t-iq2000 does
> specify -G:
> # We must build libgcc2.a with -G 0, in case the user wants to link
> # without the $gp register.
> TARGET_LIBGCC2_CFLAGS = -G 0
> Removing that line is easy enough, but perhaps -G really is (supposed to
> be) supported? Nick, is -G supported or not on iq2000?
I assessed what is meant to support -G based on what uses the g_switch_*
variables. The iq2000 back end does not use them. I suppose it would
have been accepted only because of the specs in svr4.h which that target
uses - that is, the driver thought this was a linker option (and if -G,
without argument, is being accepted as a linker option on a given target,
then the driver should not for other purposes be treating it as an option
taking an argument).
Joseph S. Myers