This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/68582] -Wunused-function doesn't warn about unused static __attribute__((noreturn)) functions


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68582

--- Comment #5 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Tue Dec  1 15:44:08 2015
New Revision: 231116

URL: https://gcc.gnu.org/viewcvs?rev=231116&root=gcc&view=rev
Log:
        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.

Added:
    trunk/gcc/testsuite/c-c++-common/pr68582.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/cgraphunit.c
    trunk/gcc/testsuite/ChangeLog

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]