r256188 - in /trunk/gcc: ChangeLog doc/extend.t...
msebor@gcc.gnu.org
msebor@gcc.gnu.org
Wed Jan 3 20:43:00 GMT 2018
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
More information about the Gcc-cvs
mailing list