]> git.ipfire.org Git - thirdparty/gcc.git/commit
PR lto/84212 - -Wno-* does not disable warnings from -flto link stage
authorMartin Sebor <msebor@redhat.com>
Fri, 9 Feb 2018 17:58:54 +0000 (17:58 +0000)
committerMartin Sebor <msebor@gcc.gnu.org>
Fri, 9 Feb 2018 17:58:54 +0000 (10:58 -0700)
commitcea71f0a97520aeeba6509688047311a75f35421
tree8bfff2558f9a41d6c8acc91bd7eff469ccae8b1b
parentcad5b07905fb24447dced464b6f60b70178f2fea
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.

From-SVN: r257534
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]