diff options
Diffstat (limited to 'gcc/c-semantics.c')
-rw-r--r-- | gcc/c-semantics.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/c-semantics.c b/gcc/c-semantics.c index 1c493e7bc6d..6f2ca2c9cfc 100644 --- a/gcc/c-semantics.c +++ b/gcc/c-semantics.c @@ -75,6 +75,11 @@ add_stmt (t) /* When we expand a statement-tree, we must know whether or not the statements are full-expresions. We record that fact here. */ STMT_IS_FULL_EXPR_P (last_tree) = stmts_are_full_exprs_p (); + + /* Keep track of the number of statements in this function. */ + if (current_function_decl) + ++DECL_NUM_STMTS (current_function_decl); + return t; } |