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-semantics.c | |
parent | 3e4d04a1bad107f85a9e48e2f9df9ed672b0ab16 (diff) | |
download | gcc-64094f6a65becc338e39fe3bc72d83d812c50d4d.tar.gz |
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-semantics.c')
-rw-r--r-- | gcc/c-semantics.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/c-semantics.c b/gcc/c-semantics.c index d5150ba45f4..4cf457279de 100644 --- a/gcc/c-semantics.c +++ b/gcc/c-semantics.c @@ -220,7 +220,9 @@ finish_stmt_tree (t) /* Build a generic statement based on the given type of node and arguments. Similar to `build_nt', except that we set - TREE_COMPLEXITY to be the current line number. */ + STMT_LINENO to be the current line number. */ +/* ??? This should be obsolete with the lineno_stmt productions + in the grammar. */ tree build_stmt VPARAMS ((enum tree_code code, ...)) @@ -241,7 +243,7 @@ build_stmt VPARAMS ((enum tree_code code, ...)) t = make_node (code); length = TREE_CODE_LENGTH (code); - TREE_COMPLEXITY (t) = lineno; + STMT_LINENO (t) = lineno; for (i = 0; i < length; i++) TREE_OPERAND (t, i) = va_arg (p, tree); |