On 5/14/19 3:32 PM, Martin Sebor wrote:
> The attached patch fixes quoting, spelling, and other formatting
> issues in diagnostics issued from files in the c-family/ directory
> and pointed out by the -Wformat-diag warning.
> 
> Martin
> 
> gcc-wformat-diag-c-family.diff
> 
> gcc/c-family/ChangeLog:
> 
>       * c-attribs.c (handle_no_sanitize_attribute): Quote identifiers,
>       keywords, operators, and types in diagnostics.
>       (handle_scalar_storage_order_attribute): Same.
>       (handle_mode_attribute): Same.
>       (handle_visibility_attribute): Same.
>       (handle_assume_aligned_attribute): Same.
>       (handle_no_split_stack_attribute): Same.
>       * c-common.c (shorten_compare): Same.
>       (c_common_truthvalue_conversion): Same.
>       (cb_get_source_date_epoch): Same.
>       * c-common.h (GCC_DIAG_STYLE): Adjust.
>       (GCC_DIAG_RAW_STYLE): New macro.
>       * c-lex.c (cb_def_pragma): Quote keywords, operators, and types
>       in diagnostics.
>       (interpret_float): Same.
>       * c-omp.c (c_finish_omp_for): Same.
>       * c-opts.c (c_common_post_options): Same.
>       * c-pch.c (c_common_pch_pragma): Same.
>       * c-pragma.c (pop_alignment): Same.
>       (handle_pragma_pack): Same.
>       (apply_pragma_weak): Same.
>       (handle_pragma_weak): Same.
>       (handle_pragma_scalar_storage_order): Same.
>       (handle_pragma_redefine_extname): Same.
>       (add_to_renaming_pragma_list): Same.
>       (maybe_apply_renaming_pragma): Same.
>       (push_visibility): Same.
>       (handle_pragma_visibility): Same.
>       (handle_pragma_optimize): Same.
>       (handle_pragma_message): Same.
>       * c-warn.c (warn_for_omitted_condop): Same.
>       (lvalue_error): Same.
OK
jeff

Reply via email to