https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83559

--- Comment #3 from Martin Sebor <msebor at gcc dot gnu.org> ---
Author: msebor
Date: Wed Jan  3 20:43:47 2018
New Revision: 256188

URL: https://gcc.gnu.org/viewcvs?rev=256188&root=gcc&view=rev
Log:
PR c/83559 - -Wsuggest-attribute=const conflicts with -Wattributes warning
about const attribute on function returning void

gcc/ChangeLog:

        PR c/83559
        * doc/extend.texi (attribute const): Fix a typo.
        * ipa-pure-const.c ((warn_function_const, warn_function_pure): Avoid
        issuing -Wsuggest-attribute for void functions.

gcc/testsuite/ChangeLog:

        PR c/83559
        * gcc.dg/const-2.c: New test.
        * gcc.dg/pure-3.c: New test.


Added:
    trunk/gcc/testsuite/gcc.dg/const-2.c
    trunk/gcc/testsuite/gcc.dg/pure-3.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/doc/extend.texi
    trunk/gcc/ipa-pure-const.c
    trunk/gcc/testsuite/ChangeLog

Reply via email to