This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PR fortran/9038, a regression in 3.3/3.4 with respect to 3.2.


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},


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]