the size of tree_decl
law@redhat.com
law@redhat.com
Wed Feb 12 23:04:00 GMT 2003
In message <20030212224744.GB14744@daikokuya.co.uk>, Neil Booth writes:
>Dan Nicolaescu wrote:-
>
>> There's another field that is too big: location_t locus, it contains
>> a line number and a char*. If it was to use logical lines like cpplib
>> does, the char*
>
>That's the ultimate plan. Try doing for the whole compiler though.
>What a nightmare.
>
>Per was working on adding column info and still using just 32 bits.
>Sounded a bit tight to me. That's gone quiet.
What we do on the tree-ssa branch (where the locus is common to all nodes)
is have a pointer to external locus data, which can be shared across
nodes.
I wouldn't recommend this for the mainline tree though. tree-ssa has
an interesting requirement that location information be tied to exprs,
decls and other nodes. The alternative was to create expression nodes
to carry locus information around. After doing the algebra it was
pretty clear that we were better off with the locus pointer in tree_common
plus sharing rather than having lots of wrapper nodes carrying line
information.
jeff
More information about the Gcc
mailing list