summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authortoon <toon@138bc75d-0d04-0410-961f-82ee72b054a4>2003-02-20 22:08:45 +0000
committertoon <toon@138bc75d-0d04-0410-961f-82ee72b054a4>2003-02-20 22:08:45 +0000
commitaa9c2ce2be3afe4456d958dbd24eb818db7541e7 (patch)
tree4cee050413586a3588b0a2685b6dcca9709ad42d /gcc
parent38099b6a720b30fe633d811be24a9c219f049c1c (diff)
downloadgcc-aa9c2ce2be3afe4456d958dbd24eb818db7541e7.tar.gz
2003-02-20 Toon Moene <toon@moene.indiv.nluug.nl>
PR fortran/9038 * c-opts.c (sanitize_cpp_opts): Add Fortran front end options to be ignored. (c_common_decode_option): Ignore them when preprocessing. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@63184 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/c-opts.c9
-rw-r--r--gcc/f/ChangeLog4
-rw-r--r--gcc/f/news.texi4
4 files changed, 23 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 4d708ef4bdf..98f1146f996 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,10 @@
+2003-02-20 Toon Moene <toon@moene.indiv.nluug.nl>
+
+ PR fortran/9038
+ * c-opts.c (sanitize_cpp_opts): Add Fortran front end
+ options to be ignored.
+ (c_common_decode_option): Ignore them when preprocessing.
+
Thu Feb 20 21:41:19 CET 2003 Jan Hubicka <jh@suse.cz>
* toplev.c (flag_sched2_use_superblocks, flag_sched2_use_traces): New global variables.
diff --git a/gcc/c-opts.c b/gcc/c-opts.c
index 4043447fdf2..075112e31f9 100644
--- a/gcc/c-opts.c
+++ b/gcc/c-opts.c
@@ -212,6 +212,8 @@ static void sanitize_cpp_opts PARAMS ((void));
OPT("fenforce-eh-specs", CL_CXX, OPT_fenforce_eh_specs) \
OPT("fenum-int-equiv", CL_CXX, OPT_fenum_int_equiv) \
OPT("fexternal-templates", CL_CXX, OPT_fexternal_templates) \
+ OPT("ffixed-form", CL_C, OPT_ffixed_form) \
+ OPT("ffixed-line-length-", CL_C | CL_JOINED, OPT_ffixed_line_length) \
OPT("ffor-scope", CL_CXX, OPT_ffor_scope) \
OPT("ffreestanding", CL_C, OPT_ffreestanding) \
OPT("fgnu-keywords", CL_CXX, OPT_fgnu_keywords) \
@@ -1142,6 +1144,13 @@ c_common_decode_option (argc, argv)
flag_external_templates = on;
goto cp_deprecated;
+ case OPT_ffixed_form:
+ case OPT_ffixed_line_length:
+ /* Fortran front end options ignored when preprocessing only. */
+ if (flag_preprocess_only)
+ result = -1;
+ break;
+
case OPT_ffor_scope:
flag_new_for_scope = on;
break;
diff --git a/gcc/f/ChangeLog b/gcc/f/ChangeLog
index 553ce621b17..f668eac5e73 100644
--- a/gcc/f/ChangeLog
+++ b/gcc/f/ChangeLog
@@ -1,3 +1,7 @@
+2003-02-20 Toon Moene <toon@moene.indiv.nluug.nl>
+
+ * news.texi: Document fixing PR fortran/9038.
+
2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
* g77.texi, invoke.texi: Update to GFDL 1.2.
diff --git a/gcc/f/news.texi b/gcc/f/news.texi
index d12d0bdd8e3..2194852f8d2 100644
--- a/gcc/f/news.texi
+++ b/gcc/f/news.texi
@@ -11,7 +11,7 @@
@c in the standalone derivations of this file (e.g. NEWS).
@set copyrights-news 1995,1996,1997,1998,1999,2000,2001,2002,2003
-@set last-update-news 2003-01-31
+@set last-update-news 2003-02-20
@ifset DOC-NEWS
@include root.texi
@@ -189,6 +189,8 @@ gave wrong results)
Incorrect output with 0-based array of characters
@item 8587
Double complex zero ** double precision number -> NaN instead of zero
+@item 9038
+-ffixed-line-length-none -x f77-cpp-input gives: Warning: unknown register name line-length-none
@end table
@item
Richard Henderson (@email{rth@@redhat.com}) analyzed and improved the handling