This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: PR fortran/9038, a regression in 3.3/3.4 with respect to 3.2.
- From: Paul Brook <paul at nowt dot org>
- To: Toon Moene <toon at moene dot indiv dot nluug dot nl>, gcc at gcc dot gnu dot org
- Cc: neil at daikokuya dot co dot uk
- Date: Mon, 17 Feb 2003 23:53:39 +0000
- Subject: Re: PR fortran/9038, a regression in 3.3/3.4 with respect to 3.2.
- References: <3E514AC6.1080004@moene.indiv.nluug.nl>
On Monday 17 February 2003 8:49 pm, Toon Moene wrote:
> L.S.,
>
> [ cc'd to Neil because he's the cc -E expert ]
<snip>
> However, as shown above, cc1 -E -ffixed-line-length-none will provoke
> the warning message, which is bogus, because cc1 -E has no valid
> interpretation for -ffixed-<anything> anyway - it should just run the
> preprocessor !
>
> How do we get rid of the inappropriate "consumption" of
> -ffixed-<anything> options by cc1 -E ?
>
> Any insight appreciated.
Wouldn't it be easiest to simply stop the g77 driver passing -ffixed-* to
cc1 -E, using %<fixed-*.
The patch below works for me, it prevents -ffixed-* being passed to cc1 -E,
but still passes them to f771.
Paul Brook
Index: lang-specs.h
===================================================================
RCS file: /cvsroot/gcc/gcc/gcc/f/lang-specs.h,v
retrieving revision 1.32.2.5
diff -c -3 -p -r1.32.2.5 lang-specs.h
*** lang-specs.h 3 Feb 2003 17:09:18 -0000 1.32.2.5
--- lang-specs.h 17 Feb 2003 23:43:09 -0000
*************** the Free Software Foundation, 59 Temple
*** 29,35 ****
{".fpp", "@f77-cpp-input", 0},
{".FPP", "@f77-cpp-input", 0},
{"@f77-cpp-input",
! "cc1 -E -traditional-cpp -D_LANGUAGE_FORTRAN %(cpp_options) \
%{E|M|MM:%(cpp_debug_options)}\
%{!M:%{!MM:%{!E: %|.f |\n\
f771 %|.f %(cc1_options) %{I*} %{!fsyntax-only:%(invoke_as)}}}}", 0},
--- 29,35 ----
{".fpp", "@f77-cpp-input", 0},
{".FPP", "@f77-cpp-input", 0},
{"@f77-cpp-input",
! "cc1 -E -traditional-cpp -D_LANGUAGE_FORTRAN %<ffixed-* %(cpp_options)
\
%{E|M|MM:%(cpp_debug_options)}\
%{!M:%{!MM:%{!E: %|.f |\n\
f771 %|.f %(cc1_options) %{I*} %{!fsyntax-only:%(invoke_as)}}}}", 0},