This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/48779] -Wunused-but-set-variable does not report unread unit-static variables
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 23 Jul 2011 22:40:25 +0000
- Subject: [Bug middle-end/48779] -Wunused-but-set-variable does not report unread unit-static variables
- Auto-submitted: auto-generated
- References: <bug-48779-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48779
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2011.07.23 22:40:07
Component|c |middle-end
Ever Confirmed|0 |1
Severity|normal |enhancement
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2011-07-23 22:40:07 UTC ---
To do this warning, we need an IPA pass which goes through all static
referenced variables and see if they are only written to.