re PR c/81795 (Stray "originally defined here" when using -Wc++-compat with #pragma...
authorMarek Polacek <polacek@redhat.com>
Fri, 11 Aug 2017 18:02:18 +0000 (18:02 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Fri, 11 Aug 2017 18:02:18 +0000 (18:02 +0000)
commitbb85aa74f07e2cebb7f888a1817eba6f2f4308a6
treea96a1ed51c7758fbdbf7baa89719685232ae1a81
parent27c33b8fa5a882bc3476f6860fb5032ffe208562
re PR c/81795 (Stray "originally defined here" when using -Wc++-compat with #pragma GCC diagnostic push/pop)

PR c/81795
* c-decl.c (pushtag): Only print inform if the warning was printed.
(grokdeclarator): Likewise.

* gcc.dg/pr81795.c: New test.

From-SVN: r251056
gcc/c/ChangeLog
gcc/c/c-decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr81795.c [new file with mode: 0644]