diff options
Diffstat (limited to 'gcc/tree.c')
-rw-r--r-- | gcc/tree.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -1123,6 +1123,18 @@ tree_cons (purpose, value, chain) return node; } +/* Return the last expression in a sequence of COMPOUND_EXPRs. */ + +tree +expr_last (expr) + tree expr; +{ + if (expr == NULL_TREE) + return expr; + while (TREE_CODE (expr) == COMPOUND_EXPR) + expr = TREE_OPERAND (expr, 1); + return expr; +} /* Return the size nominally occupied by an object of type TYPE when it resides in memory. The value is measured in units of bytes, |