diff options
author | Martin Sebor <msebor@redhat.com> | 2018-01-03 20:43:47 +0000 |
---|---|---|
committer | Martin Sebor <msebor@gcc.gnu.org> | 2018-01-03 13:43:47 -0700 |
commit | a594cff3b56f22153e50759c9eb4e0dbe54f3388 (patch) | |
tree | 4f749714f4626da6f165eb6211413bf86d5ab660 /gcc/rtl.h | |
parent | a6fd2cd769c3bb446085e45794fcb22481eed400 (diff) | |
download | gcc-a594cff3b56f22153e50759c9eb4e0dbe54f3388.zip gcc-a594cff3b56f22153e50759c9eb4e0dbe54f3388.tar.gz gcc-a594cff3b56f22153e50759c9eb4e0dbe54f3388.tar.bz2 |
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.
From-SVN: r256188
Diffstat (limited to 'gcc/rtl.h')
0 files changed, 0 insertions, 0 deletions