Jerry Quinn <jlqu...@optonline.net> writes: > There is also DECL_EXPR representing local declarations, which appears > to be related. How do these get used and would it even be used in a > C-like language?
The VAR_DECL is simply stored in the BLOCK, but in C++, C99, and GNU89, not all variables are declared at the start of a block. DECL_EXPR is used to mark the point in the instruction sequence where the variable is actually declared. The gimplifier turns this into an initialization of the variable. Ian