[patch fortran/44054] handle %L using the common diagnostics machinery
Tobias Burnus
burnus@net-b.de
Sun Nov 23 20:37:00 GMT 2014
Manuel López-Ibáñez wrote:
> Exactly what the subject says. I'm not sure if this is appropriate for
> stage3, I'll leave that to the Fortran maintainers.
>
> Bootstrapped & regression tested on x86_64-linux-gnu.
Looks good to me - and is a rather simple patch.
Thanks!
Tobias
> gcc/fortran/ChangeLog:
>
> 2014-11-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
>
> PR fortran/44054
> * decl.c (gfc_verify_c_interop_param): Use gfc_error_now_2.
> (gfc_set_constant_character_len): Use gfc_warning_now_2.
> * resolve.c (resolve_ordinary_assign): Likewise.
> * gfortran.h (warn_character_truncation): Do not declare here.
> * error.c (gfc_format_decoder): Handle %L.
> * lang.opt (Wcharacter-truncation): Add Var and LangEnabledBy.
> * options.c (gfc_init_options): Do not handle
> warn_character_truncation explicitly.
> (set_Wall): Likewise.
> (gfc_handle_option): Likewise.
More information about the Gcc-patches
mailing list