This is the mail archive of the
mailing list for the GCC project.
Re: variable pool for unit-at-a-time C/objC
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: Jan Hubicka <jh at suse dot cz>
- Cc: Andrew Pinski <pinskia at physics dot uc dot edu>, gcc-patches at gcc dot gnu dot org, rth at redhat dot com
- Date: Thu, 19 Jun 2003 17:28:57 -0400
- Subject: Re: variable pool for unit-at-a-time C/objC
On Thursday, Jun 19, 2003, at 17:13 US/Eastern, Jan Hubicka wrote:
this patch implements new variable pool - datastructure with interface
symmetric to cgraph that is used to hold global variables. At the
just implements the interface and reachability analysis (via checking
assembly names has been output and what variables are needed by
to be expanded in cgraphunit), so it can deal with cyclic references
from outside like:
static char *a=(char *)&b;
static char *b=(char *)&a;
That is probably not big deal. It is mostly usefull to make C++
easier, but I would like to implement some simple optimizations, like
constification of variables never writen to and unification of the
whose address is never taken.
Regtested/bootstrapped i386/mainline together with the previous patch
cleanup unit-at-a-time. OK?
Does this fix also PR optimization/9702 by a chance?