This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: GCC warnings for unused global variables
- From: Richard Henderson <rth at redhat dot com>
- To: Joe Buck <jbuck at synopsys dot com>, Alexander Kabaev <kabaev at mail dot ru>, pthomas at suse dot de, ak03 at gte dot com, gcc at gcc dot gnu dot org
- Date: Thu, 1 May 2003 10:35:39 -0700
- Subject: Re: GCC warnings for unused global variables
- References: <20030429165657.634a1628.ak03@gte.com> <20030430083713.GU4016@paradies.suse.de> <20030430233243.GM697@redhat.com> <20030430194730.68abe5b4.kabaev@mail.ru> <20030501002107.GP697@redhat.com> <20030501093813.E21602@synopsys.com> <20030501164757.GA31113@redhat.com>
On Thu, May 01, 2003 at 09:47:57AM -0700, Richard Henderson wrote:
> This would be considered a feature for any other variable...
I should add that this has already found mistakes, both within gcc
itself and in the linux kernel, where some static variable was left
stranded when the bit of code it had been associated with was removed,
but the variable forgotten.
That is exactly the sort of thing I expect this feature to find.
r~