diff options
author | Francois-Xavier Coudert <coudert@clipper.ens.fr> | 2005-11-04 09:29:16 +0100 |
---|---|---|
committer | François-Xavier Coudert <fxcoudert@gcc.gnu.org> | 2005-11-04 08:29:16 +0000 |
commit | a67ec6ab99c91c593138358b56dcc160aa09a015 (patch) | |
tree | 4d84eda381e6ccb216977e5d703d88994573c9d3 /gcc/fortran/lang-specs.h | |
parent | 553ff21c96f1206b02864c070af7a0e19934c4c9 (diff) | |
download | gcc-a67ec6ab99c91c593138358b56dcc160aa09a015.tar.gz |
re PR fortran/18452 (Fortran options induces warning for fortran that needs preprocessing)
PR fortran/18452
* gcc/fortran/lang-specs.h: Pass -lang-fortran to the preprocessor.
* gcc/c.opt: Add a -lang-fortran option.
* gcc/c-opts.c: Add a lang_fortran flag.
(c_common_init_options): Handling the -lang-fortran option.
(c_common_handle_option): Add a case for Fortran options in
preprocessing. Remove cases for -ffixed-form and
-ffixed-line-length. Add a case for -lang-fortran.
From-SVN: r106483
Diffstat (limited to 'gcc/fortran/lang-specs.h')
-rw-r--r-- | gcc/fortran/lang-specs.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/fortran/lang-specs.h b/gcc/fortran/lang-specs.h index b18483f5c23..688fbc1f276 100644 --- a/gcc/fortran/lang-specs.h +++ b/gcc/fortran/lang-specs.h @@ -11,7 +11,7 @@ This file is licensed under the GPL. */ {".fpp", "@f77-cpp-input", 0, 0, 0}, {".FPP", "@f77-cpp-input", 0, 0, 0}, {"@f77-cpp-input", - "cc1 -E -traditional-cpp -D_LANGUAGE_FORTRAN %(cpp_options) \ + "cc1 -E -lang-fortran -traditional-cpp -D_LANGUAGE_FORTRAN %(cpp_options) \ %{E|M|MM:%(cpp_debug_options)}\ %{!M:%{!MM:%{!E: -o %|.f |\n\ f951 %|.f %{!ffree-form:-ffixed-form} %(cc1_options) %{J*} %{I*}\ @@ -19,7 +19,7 @@ This file is licensed under the GPL. */ {".F90", "@f95-cpp-input", 0, 0, 0}, {".F95", "@f95-cpp-input", 0, 0, 0}, {"@f95-cpp-input", - "cc1 -E -traditional-cpp -D_LANGUAGE_FORTRAN %(cpp_options) \ + "cc1 -E -lang-fortran -traditional-cpp -D_LANGUAGE_FORTRAN %(cpp_options) \ %{E|M|MM:%(cpp_debug_options)}\ %{!M:%{!MM:%{!E: -o %|.f95 |\n\ f951 %|.f95 %(cc1_options) %{J*} %{I*}\ |