This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/47486] gfortran -M exits with fatal error when -o option is used
- From: "burnus at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 15 Feb 2012 15:51:45 +0000
- Subject: [Bug fortran/47486] gfortran -M exits with fatal error when -o option is used
- Auto-submitted: auto-generated
- References: <bug-47486-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47486
--- Comment #7 from Tobias Burnus <burnus at gcc dot gnu.org> 2012-02-15 15:51:45 UTC ---
(In reply to comment #5)
> "%{E|M|MM|MT|MQ|MD|MMD:;:" F951_OPTIONS "}"
Good idea - and looks cleaner. Except (my bug) that -MD and -MMD do not imply
"-E". Thus, those shouldn't appear in that list.
Additionally, with -M the output goes - according to Kai (thanks for testing!)
- still to stdout. I think the "if (gfc_cpp_preprocess_only ())" in
fortran/cpp.c's gfc_cpp_init_0 needs to be modified.