diff options
author | Richard Henderson <rth@redhat.com> | 2000-12-20 10:18:24 -0800 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2000-12-20 10:18:24 -0800 |
commit | 64094f6a65becc338e39fe3bc72d83d812c50d4d (patch) | |
tree | c348f2bb0cb4cb71bb3b6a678fa12eeac3682584 /gcc/c-common.c | |
parent | 3e4d04a1bad107f85a9e48e2f9df9ed672b0ab16 (diff) | |
download | gcc-64094f6a65becc338e39fe3bc72d83d812c50d4d.zip gcc-64094f6a65becc338e39fe3bc72d83d812c50d4d.tar.gz gcc-64094f6a65becc338e39fe3bc72d83d812c50d4d.tar.bz2 |
c-typeck.c (build_asm_stmt): New, broken out from ...
* 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.
From-SVN: r38402
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 a1970e2..5d13345 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. */ |