PR lto/84212 - -Wno-* does not disable warnings from -flto link stage
commit4183b672c39ca87f8f4d4f7ba220491d23d6d4ba
authormsebor <msebor@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 9 Feb 2018 17:58:54 +0000 (9 17:58 +0000)
committermsebor <msebor@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 9 Feb 2018 17:58:54 +0000 (9 17:58 +0000)
tree8bfff2558f9a41d6c8acc91bd7eff469ccae8b1b
parentcdabf11564339deb4f2cbc9d7f82d05f474587ef
PR lto/84212 - -Wno-* does not disable warnings from -flto link stage

gcc/c-family/ChangeLog:

PR lto/84212
* c.opt (-Wstringop-overflow, -Warray-bounds): Add LTO.
(-Walloc-size-larger-than, -Wformat-truncation=): Same.
(-Wmaybe-uninitialized, -Wnonnull, -Wrestrict): Same.
(-Wstrict-overflow, -Wsuggest-attribute): Same.
(-Wuninitialized): Same.

gcc/testsuite/ChangeLog:

PR lto/84212
* gcc.dg/lto/pr84212_0.c: New test file.
* gcc.dg/lto/pr84212_1.c: Same.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@257534 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/c-family/ChangeLog
gcc/c-family/c.opt
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/lto/pr84212_0.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/lto/pr84212_1.c [new file with mode: 0644]