This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [tree-ssa] live analysis on local static functions
- From: Joe Buck <jbuck at synopsys dot com>
- To: law at redhat dot com
- Cc: Andrew MacLeod <amacleod at redhat dot com>, Jan Hubicka <jh at suse dot cz>, gcc mailing list <gcc at gcc dot gnu dot org>, Diego Novillo <dnovillo at redhat dot com>, Richard Henderson <rth at redhat dot com>
- Date: Tue, 14 Oct 2003 14:20:34 -0700
- Subject: Re: [tree-ssa] live analysis on local static functions
- References: <1066149766.10504.1982.camel@p4> <200310141703.h9EH3f5Z012612@speedy.slc.redhat.com>
On Tue, Oct 14, 2003 at 11:03:41AM -0600, law@redhat.com wrote:
> A static variable which is never used really should go away, even if it
> has an initializer since it contributes nothing to observable behavior of
> the program.
Unless the initializer has a side effect, of course. (e.g. C++ object
that allocates/frees a resource in the ctor/dtor).