This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug driver/11417] [3.4 regression] fortran options warned about in cc1 when *.F or -x f77-cpp-input
- From: "toon at moene dot indiv dot nluug dot nl" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Jul 2003 19:24:02 -0000
- Subject: [Bug driver/11417] [3.4 regression] fortran options warned about in cc1 when *.F or -x f77-cpp-input
- References: <20030703020144.11417.bdavis9659@comcast.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11417
------- Additional Comments From toon at moene dot indiv dot nluug dot nl 2003-07-05 19:24 -------
Subject: Re: [3.4 regression] fortran options warned about
in cc1 when *.F or -x f77-cpp-input
Neil Booth wrote:
> toon at gcc dot gnu dot org wrote:-
>>This must be Neil's doing.
>
> Sadly there isn't a clean and simple solution to this, since the real
> problem is the driver passing down switches to cc1 that apply to
> Fortran. This is the best I can think of.
>
> Neil.
>
> PR driver/11417
> * c-opts.c (permit_fortran_options): New.
> (c_common_init_options): Accept fortran front end options if
> it looks like we might be preprocessing Fortran.
> (c_common_handle_option): Don't reject switch if permit_fotran_options.
Thanks !