re PR middle-end/68582 (-Wunused-function doesn't warn about unused static __attribut...
authorMarek Polacek <polacek@redhat.com>
Tue, 1 Dec 2015 15:44:08 +0000 (15:44 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Tue, 1 Dec 2015 15:44:08 +0000 (15:44 +0000)
commit8b6ab677a214c9ae86ab4644af573b93bfd84b03
treef379aee6d108102c1d3af28866f4af7a0127481b
parent6c59645f5de1af1dff9715a5bd30f21f29cf2607
re PR middle-end/68582 (-Wunused-function doesn't warn about unused static __attribute__((noreturn)) functions)

PR middle-end/68582
* cgraphunit.c (check_global_declaration): Only depend on TREE_THIS_VOLATILE
for VAR_DECLs.

* c-c++-common/pr68582.c: New test.

From-SVN: r231116
gcc/ChangeLog
gcc/cgraphunit.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/pr68582.c [new file with mode: 0644]