[Bug fortran/36457] preprocessing: option -idirafter undefined for fortran

billingd at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Dec 4 00:27:00 GMT 2008



------- Comment #2 from billingd at gcc dot gnu dot org  2008-12-04 00:25 -------
I can kill this warning if I invoke gfortran with -nostdinc.  I would have
expected this to be the default.  After all, why include C source code or
headers in a Fortran file.

I will test this patch then ask on fortran@ 

--- cpp.c       2008-11-21 16:37:52.000000000 +1100
+++ cpp.c.new   2008-12-04 11:13:09.000000000 +1100
@@ -294,7 +294,7 @@
   gfc_cpp_option.dump_includes = 0;
   gfc_cpp_option.working_directory = -1;
   gfc_cpp_option.no_predefined = 0;
-  gfc_cpp_option.standard_include_paths = 1;
+  gfc_cpp_option.standard_include_paths = 0;
   gfc_cpp_option.verbose = 0;

   gfc_cpp_option.multilib = NULL;


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36457



More information about the Gcc-bugs mailing list