diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-06-21 23:30:30 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-06-21 23:30:30 +0000 |
commit | c857cd60b89c8c9cb6f064ab3d1de1eaae22db1d (patch) | |
tree | 549a437788493737d07ebf98e175601b039ef1a9 /gcc/c-dump.c | |
parent | e030e0eaa5fafeb4f9e6a1854f7d4dc726cce70e (diff) | |
download | gcc-c857cd60b89c8c9cb6f064ab3d1de1eaae22db1d.tar.gz |
* c-common.def (RETURN_STMT): Remove.
* c-common.h (RETURN_STMT_EXPR): Remove.
(c_expand_return, build_return_stmt): Remove.
(c_common_stmt_codes): Remove RETURN_STMT.
* c-dump.c (dump_next_stmt): Remove.
(c_dump_tree): Remove RETURN_STMT.
* c-decl.c (finish_function): Use c_finish_return.
* c-parse.in (stmt): Likewise.
* c-gimplify.c (gimplify_return_stmt): Remove.
(c_gimplify_expr): Remove RETURN_STMT.
* c-pretty-print.c (pp_c_statement): Likewise.
* c-semantics.c (build_return_stmt): Remove.
* c-tree.h (c_finish_return): Declare.
* c-typeck.c (c_finish_return): Rename from c_expand_return.
Return void. Build RETURN_EXPR directly.
* tree-dump.h (dump_next_stmt): Remove.
cp/
* dump.c (cp_dump_tree): Don't use dump_next_stmt.
* parser.c (cp_parser_jump_statement): Update commentary.
* pt.c (tsubst_expr): Use RETURN_EXPR.
* semantics.c (finish_return_stmt): Likewise.
(finalize_nrv_r): Likewise.
* typeck.c, typeck2.c: Update file start commentary.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83461 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-dump.c')
-rw-r--r-- | gcc/c-dump.c | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/gcc/c-dump.c b/gcc/c-dump.c index 18a8887295f..91acac844c7 100644 --- a/gcc/c-dump.c +++ b/gcc/c-dump.c @@ -1,5 +1,5 @@ /* Tree-dumping functionality for C-family languages. - Copyright (C) 2002 Free Software Foundation, Inc. + Copyright (C) 2002, 2004 Free Software Foundation, Inc. Written by Mark Mitchell <mark@codesourcery.com> This file is part of GCC. @@ -37,14 +37,6 @@ dump_stmt (dump_info_p di, tree t) dump_int (di, "line", locus->line); } -/* Dump the next statement after STMT. */ - -void -dump_next_stmt (dump_info_p di, tree t) -{ - dump_child ("next", TREE_CHAIN (t)); -} - /* Dump any C-specific tree codes and attributes of common codes. */ bool @@ -66,26 +58,22 @@ c_dump_tree (void *dump_info, tree t) case BREAK_STMT: case CONTINUE_STMT: dump_stmt (di, t); - dump_next_stmt (di, t); break; case DECL_STMT: dump_stmt (di, t); dump_child ("decl", DECL_STMT_DECL (t)); - dump_next_stmt (di, t); break; case DO_STMT: dump_stmt (di, t); dump_child ("body", DO_BODY (t)); dump_child ("cond", DO_COND (t)); - dump_next_stmt (di, t); break; case EXPR_STMT: dump_stmt (di, t); dump_child ("expr", EXPR_STMT_EXPR (t)); - dump_next_stmt (di, t); break; case FOR_STMT: @@ -94,27 +82,18 @@ c_dump_tree (void *dump_info, tree t) dump_child ("cond", FOR_COND (t)); dump_child ("expr", FOR_EXPR (t)); dump_child ("body", FOR_BODY (t)); - dump_next_stmt (di, t); - break; - - case RETURN_STMT: - dump_stmt (di, t); - dump_child ("expr", RETURN_STMT_EXPR (t)); - dump_next_stmt (di, t); break; case SWITCH_STMT: dump_stmt (di, t); dump_child ("cond", SWITCH_COND (t)); dump_child ("body", SWITCH_BODY (t)); - dump_next_stmt (di, t); break; case WHILE_STMT: dump_stmt (di, t); dump_child ("cond", WHILE_COND (t)); dump_child ("body", WHILE_BODY (t)); - dump_next_stmt (di, t); break; case STMT_EXPR: |