diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-12-20 18:18:24 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-12-20 18:18:24 +0000 |
commit | 7cad36f4567c5ff6571d2eafa3508938ae35aaa6 (patch) | |
tree | c348f2bb0cb4cb71bb3b6a678fa12eeac3682584 /gcc/c-common.c | |
parent | 4aa0811f0a5c4054e1eb9a9649e781cde6b9018c (diff) | |
download | gcc-7cad36f4567c5ff6571d2eafa3508938ae35aaa6.tar.gz |
* c-typeck.c (build_asm_stmt): New, broken out from ...
(c_expand_asm_operands): ... here. Just do rtl expansion.
(c_expand_return): Return the new stmt node.
(c_start_case, do_case): Likewise.
* c-common.c (c_expand_expr_stmt): Likewise.
* c-common.h: Update declarations.
* c-tree.h: Likewise.
* c-semantics.c (build_stmt): Use STMT_LINENO not TREE_COMPLEXITY.
* c-parse.in (fndef): Set DECL_SOURCE_LINE to the open brace.
(nested_function, notype_nested_function): Likewise.
(compstmt): Return the compound statement not the binding level.
(lineno_labeled_stmt): Simplify.
(lineno_stmt, lineno_label): Set STMT_LINENO.
(stmt, label): Return the new stmt node.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38402 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-common.c')
-rw-r--r-- | gcc/c-common.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c index a1970e2cd0c..5d13345eda0 100644 --- a/gcc/c-common.c +++ b/gcc/c-common.c @@ -3950,7 +3950,7 @@ verify_sequence_points (expr) obstack_free (&tlist_obstack, tlist_firstobj); } -void +tree c_expand_expr_stmt (expr) tree expr; { @@ -3969,7 +3969,7 @@ c_expand_expr_stmt (expr) error ("expression statement has incomplete type"); last_expr_type = TREE_TYPE (expr); - add_stmt (build_stmt (EXPR_STMT, expr)); + return add_stmt (build_stmt (EXPR_STMT, expr)); } /* Validate the expression after `case' and apply default promotions. */ |