This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: RFA: Remove support for TARGET_SWITCHES and TARGET_OPTIONS
- From: Geoffrey Keating <geoffk at geoffk dot org>
- To: Richard Sandiford <rsandifo at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: 28 May 2005 20:35:30 -0700
- Subject: Re: RFA: Remove support for TARGET_SWITCHES and TARGET_OPTIONS
- References: <8764x3943t.fsf@firetop.home>
Richard Sandiford <rsandifo@redhat.com> writes:
> Following on from:
>
> http://gcc.gnu.org/ml/gcc-patches/2005-05/msg02594.html
> http://gcc.gnu.org/ml/gcc-patches/2005-05/msg02686.html
> http://gcc.gnu.org/ml/gcc-patches/2005-05/msg02687.html
>
> this patch removes support for TARGET_SWITCHES and TARGET_OPTIONS,
> and poisons those macros in system.h.
>
> This allows the --target-help routine to be moved from toplev.c
> to opts.c, where the other help-printing functions are found.
> set_target_switch can be deleted outright.
>
> There were a couple of lingering mentions of TARGET_OPTIONS in comments.
> There was also a mention of TARGET_SWITCHES in doc/invoke.texi. This
> seems strange for user-level documentation, and hasn't been strictly
> accurate since the invention of TARGET_OPTIONS, so I just removed
> that bit.
>
> Tested by bootstrapping and regression testing on i686-pc-linux-gnu
> in combination with the patches above. OK to install?
This is OK, once the other patches are in. I'm leaving the SH one for
a SH maintainer, but let me know if it doesn't get reviewed.