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.
Neil Booth wrote:
Is there more than one -ffixed-? If so, just add -ffixed- to take an
optional joined argument (CL_JOINED), and ignore it. This kills all
the birds with one stone.
If we're just talking about -ffixed-line-length-, then do it for that
instead (best to be specific if there's just one switch, of course).
Apparently I still don't understand how this piece of c-opts.c works,
because the attached patch doesn't solve the problem.
Thoughts ?
--
Toon Moene - mailto:toon at moene dot indiv dot nluug dot nl - phoneto: +31 346 214290
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
Maintainer, GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html
GNU Fortran 95: http://gcc-g95.sourceforge.net/ (under construction)
*** c-opts.c.orig Tue Jan 28 23:51:27 2003
--- c-opts.c Wed Feb 19 00:17:56 2003
*************** static void sanitize_cpp_opts PARAMS ((v
*** 213,216 ****
--- 213,218 ----
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) \
*************** c_common_decode_option (argc, argv)
*** 1143,1146 ****
--- 1145,1153 ----
goto cp_deprecated;
+ case OPT_ffixed_form:
+ case OPT_ffixed_line_length:
+ /* Fortran front end options IGNORED. */
+ break;
+
case OPT_ffor_scope:
flag_new_for_scope = on;