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: Joe Buck <jbuck at synopsys dot com>
- To: Richard Henderson <rth at redhat 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 09:38:13 -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>
On Wed, Apr 30, 2003 at 05:21:07PM -0700, Richard Henderson wrote:
> > Copyright (c) 1989, 1993, 1994
> > termcap.c 8.1 (Berkeley) 6/4/93
> > strftime.c 7.38
> > localtime.c 7.57
> > asctime.c 7.7
> > rec_seq.c 8.3 (Berkeley) 7/14/94
> > key_call.c 1.25 94/04/24 SMI
> >
> > Does #ident allow that?
>
> Yes. For ELF this normally winds up in the .comment section.
> Of course, this section is removed by strip, so it won't
> *necessarily* be there, but ...
Then it won't do. It is a 20-year-old convention to do this, PRECISELY
so that binaries can be stripped but still tracked.
> > const static rcsid's are very common.
>
> Then you'll have to ignore the warning.
Then we should take OUT the bleeping warning. It wasn't there before.
It is a regression.