This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/55534] -Wno-missing-include-dirs does not work with gfortran
- From: "anlauf at gmx dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 05 Dec 2012 21:43:43 +0000
- Subject: [Bug fortran/55534] -Wno-missing-include-dirs does not work with gfortran
- Auto-submitted: auto-generated
- References: <bug-55534-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55534
--- Comment #3 from Harald Anlauf <anlauf at gmx dot de> 2012-12-05 21:43:43 UTC ---
(In reply to comment #2)
> (See PR 54033 for the patch which originally added this feature.)
>
> Untested patch.
With this patch, the warning is also gone. :-)
However, now using the option -Wmissing-include-dirs
yields the message:
f951: warning: command line option '-Wmissing-include-dirs' is valid for
C/C++/ObjC/ObjC++ but not for Fortran [enabled by default]
Which might not be intended, although I can live with it. :-)
I addition to the patch in comment #2 tried:
Index: gcc/fortran/lang.opt
===================================================================
--- gcc/fortran/lang.opt (revision 194167)
+++ gcc/fortran/lang.opt (working copy)
@@ -254,6 +254,10 @@
Fortran Warning
Warn on intrinsics not part of the selected standard
+Wmissing-include-dirs
+Fortran Warning
+; Documented in C
+
Wreal-q-constant
Fortran Warning
Warn about real-literal-constants with 'q' exponent-letter
Now the above warning is gone, but some piece is still missing...