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: "Kean Johnston" <jkj at sco dot com>
- To: "'Richard Henderson'" <rth at redhat dot com>,"'Geoff Keating'" <geoffk at geoffk dot org>
- Cc: <jbuck at synopsys dot com>, <espie at quatramaran dot ens dot fr>,<gcc at gcc dot gnu dot org>
- Date: Thu, 1 May 2003 21:08:47 -0700
- Subject: RE: GCC warnings for unused global variables
- Organization: The SCO Group
> > For instance, at program startup (in this case) the abstract machine
> > says the string contains a particular value, and how can it
> do that if
> > it is optimized away?
>
> Ok, I'll play your game. By the as-if rule, it *does*
> have that value. Any time the program cares to check
> that'll be true.
Heh :) I must admit that was quite funny. Not sure if the humour was
intended (I suspect it was) but funny nonetheless.
Kean