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: Use separate sections to stream non-trivial constructors


> 
> Well, just make them regular (anonymous) VAR_DECLs then ... (the fact
> that a CONST_DECL is anonymous is probably the only real difference - 
> and that they are mergeable by content).

Something like that, perhaps. Plan to do that incrementally - having them in
symbol tabel first is an important step. There is also an option to update
CONST_DECL into VAR_DECL when it is being turned into hidden.

Currently things are bit inflexible because we still make difference between
const decl and var decl in tree representation.  Once I finish my transition
to push out DECL_WITH_VIS and DECL_NON_COMMON fields, we can turn CONST_DECL
into VAR_DECL with special flag saying that symbol name/address value doesn't
matter.

This and, of course, cleaning up constpool mess can get me occupised for months
;)

Honza


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