This is the mail archive of the gcc-patches@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: [PATCH]: Interprocedural detection of readonly and non-addressable static variables


> >FUNCTION_DECL will be the largest DECL, and probably pretty close to the
> >current size (108 bytes).
> >
> >I'm guessing (92+ bytes) at this point.
> >
> >Most of the extra cost is flags, arguments tree, and result tree.
> >
> >
> >--Dan
> > 
> Yes but this is the correct place to put it.  There will be one 
> allocated for every function (at least at -O1 and above) and it does not 
> not require any space for any other kind of decl.

The problem is that you don't need IPA info for every function
declaration we ever produce.  C++ frontend produce tons of dead
declarations and I think that you don't need the data at all for
function not having their bodies available, so we actually need the data
for quite small fraction of all function decls we ever produce.
We probably might get better around with variables if we had static
variable inherited from variable with some extra fields...

Honza
> 
> kenny
> 


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