This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH Fortran] move more diagnostics to the common machinery (try 2)


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]