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: the size of tree_decl


In message <20030214204620.GA26259@gauvain.u-strasbg.fr>, =?iso-8859-1?Q?Pop_S=
E9bastian?= writes:
 >On Fri, Feb 14, 2003 at 12:52:23PM -0700, law@redhat.com wrote:
 >> that really aren't decls -- if I remember correctly all the "statement"
 >> nodes in the C front-end are implemented as DECLs.  Ugh.
 >> 
 >
 >DEFTREECODE (SWITCH_STMT, "switch_stmt", 'e', 3)
 >
 >All *_STMT nodes are declared as 'e' (= expressions).
You are correct.  My bad.  The _STMT nodes are 'e' expressions and their
line number is stored in the complexity field of an expr.  For DECL nodes
their locus is stored in the locus field within decl nodes.

My how quickly my memory fades.

jeff


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