Since Wsuggest-attribute=[pure|const|noreturn] was introduced, it
makes sense to have Wsuggest-attribute=format. This patch makes this
the canonical form of Wmissing-format-attribute (the old form is still
accepted and documented).

Bootstrapped and regression tested.

OK?


2012-04-29  Manuel López-Ibáñez  <m...@gcc.gnu.org>

gcc/
        * doc/invoke.texi (Wmissing-format-attribute): Document as an
        alias of Wsuggest-attribute=format.
c-family/
        * c.opt (Wsuggest-attribute=format): New. Alias of
        Wmissing-format-attribute.
        * c-format.c (decode_format_type): Replace
        Wmissing-format-attribute with Wsuggest-attribute=format.
        (check_function_format): Likewise.
cp/
        * typeck.c (convert_for_assignment):  Replace
        Wmissing-format-attribute with Wsuggest-attribute=format.
        * call.c (convert_for_arg_passing): Likewise.
gcc/
        * c-typeck.c (convert_for_assignment): Replace
        Wmissing-format-attribute with Wsuggest-attribute=format.
        (digest_init): Likewise.

Attachment: Wsuggest-attribute.diff
Description: Binary data

Reply via email to