This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Use -cpp= for Fortran -cpp option passed to f951
- From: Tobias Burnus <burnus at net-b dot de>
- To: "Joseph S. Myers" <joseph at codesourcery dot com>
- Cc: gcc-patches at gcc dot gnu dot org, fortran at gcc dot gnu dot org
- Date: Thu, 29 Jul 2010 07:56:45 +0200
- Subject: Re: Use -cpp= for Fortran -cpp option passed to f951
- References: <Pine.LNX.4.64.1007282328510.19469@digraph.polyomino.org.uk>
Joseph S. Myers wrote:
> This patch fixes the first of these issues, by changing the internal
> -cpp option to -cpp= taking a joined argument. As a side-effect, the
> Negative markers on -cpp (public option to the driver, no argument)
> and -nocpp will now be effective (prune_options ignores all options
> marked Joined, so the Negative markers would not previously have done
> anything).
>
Oh! Well spotted -- -no-cpp should work ...
> Bootstrapped with no regressions on x86_64-unknown-linux-gnu. OK to
> commit?
>
OK. Thanks for the patch!
Tobias
> 2010-07-28 Joseph Myers <joseph@codesourcery.com>
>
> * lang.opt (cpp): Remove Joined and Separate markers.
> (cpp=): New internal option.
> * lang-specs.h (F951_CPP_OPTIONS): Generate -cpp= option.
> * cpp.c (gfc_cpp_handle_option): Handle OPT_cpp_ instead of
> OPT_cpp.
>
>