This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [tree-ssa] live analysis on local static functions


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).



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]