[Bug middle-end/48779] -Wunused-but-set-variable does not report unread unit-static variables
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Jul 23 22:40:00 GMT 2011
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.
More information about the Gcc-bugs
mailing list