[PATCH Fortran] move more diagnostics to the common machinery (try 2)
Tobias Burnus
tobias.burnus@physik.fu-berlin.de
Tue Oct 7 11:36:00 GMT 2014
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 <manu@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.
More information about the Fortran
mailing list