Manuel López-Ibáñez wrote: > and of course, with -Werror=missing-include-dirs you get: > > f951: Error: Nonexistent include directory [...] > [-Werror=missing-include-dirs] > f951: some warnings being treated as errors > > plus colors!
Awesome! > Bootstrapped and regression tested on x86_64-linux-gnu. > OK? OK. Thanks for the patch! Tobias > gcc/fortran/ChangeLog: > > 2014-10-04 Manuel López-Ibáñez <m...@gcc.gnu.org> > > * gfortran.h (gfc_warning_cmdline): Add overload that takes an > option. > (gfc_error_cmdline): Declare. > * error.c (gfc_warning_cmdline): New overload that takes an option. > (gfc_error_cmdline): New. > * lang.opt (Wmissing-include-dirs): New. > * scanner.c (add_path_to_list): Use the new functions. > (load_file): Likewise. > * options.c (gfc_init_options): Wmissing-include-dirs is enabled > by default in Fortran. > (gfc_handle_option): Accept automatically handled options.