aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorBenjamin Chelf <chelf@codesourcery.com>2000-07-03 03:55:23 +0000
committerBen Chelf <chelf@gcc.gnu.org>2000-07-02 20:55:23 -0700
commit4cf88f570ac6363d5f9bfb1591bb37319410e2c3 (patch)
tree47371dbd06d575e7cedfa0ed02f5879a4322631f /gcc
parentcd9bedad01a83a93dfec0d493c2a7db490a4dbe4 (diff)
downloadgcc-4cf88f570ac6363d5f9bfb1591bb37319410e2c3.zip
gcc-4cf88f570ac6363d5f9bfb1591bb37319410e2c3.tar.gz
gcc-4cf88f570ac6363d5f9bfb1591bb37319410e2c3.tar.bz2
c-common.h (genrtl_begin_compound_stmt): Remove declaration.
2000-07-02 Benjamin Chelf <chelf@codesourcery.com> * c-common.h (genrtl_begin_compound_stmt): Remove declaration. (genrtl_finish_compound_stmt): Likewise. (genrtl_compound_stmt): Change to return void. * c-semantics.c (genrtl_begin_compound_stmt): Remove function and move code from here to ... (genrtl_compound_stmt): ... here. (genrtl_finish_compound_stmt): Remove. (expand_stmt): Add comment. * cp/cp-tree.h (genrtl_goto_stmt): Remove declaration. (genrtl_expr_stmt): Likewise. (genrtl_decl_stmt): Likewise. (genrtl_if_stmt): Likewise. (genrtl_while_stmt): Likewise. (genrtl_do_stmt): Likewise. (genrtl_return_stmt): Likewise. (genrtl_for_stmt): Likewise. (genrtl_break_stmt): Likewise. (genrtl_continue_stmt): Likewise. (genrtl_scope_stmt): Likewise. (genrtl_switch_stmt): Likewise. (genrtl_case_label): Likewise. (genrtl_begin_compound_stmt): Likewise. (genrtl_finish_compound_stmt): Likewise. (genrtl_compound_stmt): Likewise. (genrtl_asm_stmt): Likewise. * cp/init.c (begin_init_stmts): Remove call to genrtl_begin_compound_stmt. (finish_init_stmts): Remove call to genrtl_finish_compound_stmt. * cp/semantics.c (lang_expand_stmt): Changed call to genrtl_compound_stmt to ignore return value. From-SVN: r34837
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog12
-rw-r--r--gcc/c-common.h4
-rw-r--r--gcc/c-semantics.c35
-rw-r--r--gcc/cp/ChangeLog27
-rw-r--r--gcc/cp/cp-tree.h19
-rw-r--r--gcc/cp/init.c6
-rw-r--r--gcc/cp/semantics.c2
7 files changed, 53 insertions, 52 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index bff2479..5649951 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,15 @@
+2000-07-02 Benjamin Chelf <chelf@codesourcery.com>
+
+ * c-common.h (genrtl_begin_compound_stmt): Remove declaration.
+ (genrtl_finish_compound_stmt): Likewise.
+ (genrtl_compound_stmt): Change to return void.
+
+ * c-semantics.c (genrtl_begin_compound_stmt): Remove function and
+ move code from here to ...
+ (genrtl_compound_stmt): ... here.
+ (genrtl_finish_compound_stmt): Remove.
+ (expand_stmt): Add comment.
+
2000-07-02 Zack Weinberg <zack@wolery.cumb.org>
* c-typeck.c (build_indirect_ref): Use COMPLETE_OR_VOID_TYPE_P
diff --git a/gcc/c-common.h b/gcc/c-common.h
index 53bbfba..7977030 100644
--- a/gcc/c-common.h
+++ b/gcc/c-common.h
@@ -435,9 +435,7 @@ extern void genrtl_continue_stmt PARAMS ((void));
extern void genrtl_scope_stmt PARAMS ((tree));
extern void genrtl_switch_stmt PARAMS ((tree));
extern void genrtl_case_label PARAMS ((tree, tree));
-extern tree genrtl_begin_compound_stmt PARAMS ((int));
-extern tree genrtl_finish_compound_stmt PARAMS ((int));
-extern tree genrtl_compound_stmt PARAMS ((tree));
+extern void genrtl_compound_stmt PARAMS ((tree));
extern void genrtl_asm_stmt PARAMS ((tree, tree,
tree, tree,
tree));
diff --git a/gcc/c-semantics.c b/gcc/c-semantics.c
index 42cdf08e..4e5e3ff 100644
--- a/gcc/c-semantics.c
+++ b/gcc/c-semantics.c
@@ -398,42 +398,23 @@ genrtl_case_label (low_value, high_value)
do_case (low_value, high_value);
}
-/* Generate the RTL for the start of a COMPOUND_STMT. */
+/* Generate the RTL for T, which is a COMPOUND_STMT. */
-tree
-genrtl_begin_compound_stmt (has_no_scope)
- int has_no_scope;
+void
+genrtl_compound_stmt (t)
+ tree t;
{
/* If this is the outermost block of the function, declare the
variables __FUNCTION__, __PRETTY_FUNCTION__, and so forth. */
if (cfun
&& !current_function_name_declared ()
- && !has_no_scope)
+ && !COMPOUND_STMT_NO_SCOPE (t))
{
set_current_function_name_declared (1);
declare_function_name ();
- }
-
- return NULL_TREE;
-}
-
-/* Generate the RTL for the end of a COMPOUND_STMT. */
-
-tree genrtl_finish_compound_stmt (has_no_scope)
- int has_no_scope;
-{
- return NULL_TREE;
-}
+ }
-/* Generate the RTL for T, which is a COMPOUND_STMT. */
-
-tree
-genrtl_compound_stmt (t)
- tree t;
-{
- genrtl_begin_compound_stmt (COMPOUND_STMT_NO_SCOPE (t));
expand_stmt (COMPOUND_BODY (t));
- return (genrtl_finish_compound_stmt (COMPOUND_STMT_NO_SCOPE (t)));
}
/* Generate the RTL for an ASM_STMT. */
@@ -481,6 +462,9 @@ genrtl_decl_cleanup (decl, cleanup)
expand_decl_cleanup (decl, cleanup);
}
+/* Generate the RTL for the statement T, its substatements, and any
+ other statements at its nesting level. */
+
tree
expand_stmt (t)
tree t;
@@ -489,3 +473,4 @@ expand_stmt (t)
rval = lang_expand_stmt (t);
return rval;
}
+
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index a5517a9..96cd52a 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,30 @@
+2000-07-02 Benjamin Chelf <chelf@codesourcery.com>
+
+ * cp-tree.h (genrtl_goto_stmt): Remove declaration.
+ (genrtl_expr_stmt): Likewise.
+ (genrtl_decl_stmt): Likewise.
+ (genrtl_if_stmt): Likewise.
+ (genrtl_while_stmt): Likewise.
+ (genrtl_do_stmt): Likewise.
+ (genrtl_return_stmt): Likewise.
+ (genrtl_for_stmt): Likewise.
+ (genrtl_break_stmt): Likewise.
+ (genrtl_continue_stmt): Likewise.
+ (genrtl_scope_stmt): Likewise.
+ (genrtl_switch_stmt): Likewise.
+ (genrtl_case_label): Likewise.
+ (genrtl_begin_compound_stmt): Likewise.
+ (genrtl_finish_compound_stmt): Likewise.
+ (genrtl_compound_stmt): Likewise.
+ (genrtl_asm_stmt): Likewise.
+
+ * init.c (begin_init_stmts): Remove call to
+ genrtl_begin_compound_stmt.
+ (finish_init_stmts): Remove call to genrtl_finish_compound_stmt.
+
+ * semantics.c (lang_expand_stmt): Changed call to
+ genrtl_compound_stmt to ignore return value.
+
2000-07-02 Mark Mitchell <mark@codesourcery.com>
* mangle.c (canonicalize_for_substitution): Return the canonical
diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h
index 4356792..a5fea50 100644
--- a/gcc/cp/cp-tree.h
+++ b/gcc/cp/cp-tree.h
@@ -4464,25 +4464,6 @@ extern void genrtl_ctor_stmt PARAMS ((tree));
extern void genrtl_subobject PARAMS ((tree));
extern tree genrtl_do_poplevel PARAMS ((void));
extern void clear_out_block PARAMS ((void));
-extern void genrtl_goto_stmt PARAMS ((tree));
-extern void genrtl_expr_stmt PARAMS ((tree));
-extern void genrtl_decl_stmt PARAMS ((tree));
-extern void genrtl_if_stmt PARAMS ((tree));
-extern void genrtl_while_stmt PARAMS ((tree));
-extern void genrtl_do_stmt PARAMS ((tree));
-extern void genrtl_return_stmt PARAMS ((tree));
-extern void genrtl_for_stmt PARAMS ((tree));
-extern void genrtl_break_stmt PARAMS ((void));
-extern void genrtl_continue_stmt PARAMS ((void));
-extern void genrtl_scope_stmt PARAMS ((tree));
-extern void genrtl_switch_stmt PARAMS ((tree));
-extern void genrtl_case_label PARAMS ((tree, tree));
-extern tree genrtl_begin_compound_stmt PARAMS ((int));
-extern tree genrtl_finish_compound_stmt PARAMS ((int));
-extern tree genrtl_compound_stmt PARAMS ((tree));
-extern void genrtl_asm_stmt PARAMS ((tree, tree,
- tree, tree,
- tree));
extern void genrtl_named_return_value PARAMS ((tree,
tree));
extern tree begin_global_stmt_expr PARAMS ((void));
diff --git a/gcc/cp/init.c b/gcc/cp/init.c
index b1c3af9..ba06728 100644
--- a/gcc/cp/init.c
+++ b/gcc/cp/init.c
@@ -98,8 +98,8 @@ begin_init_stmts (stmt_expr_p, compound_stmt_p)
if (building_stmt_tree ())
*compound_stmt_p = begin_compound_stmt (/*has_no_scope=*/1);
- else
- *compound_stmt_p = genrtl_begin_compound_stmt (/*has_no_scope=*/1);
+ // else
+ // *compound_stmt_p = genrtl_begin_compound_stmt (has_no_scope=1);
}
/* Finish out the statement-expression begun by the previous call to
@@ -113,8 +113,6 @@ finish_init_stmts (stmt_expr, compound_stmt)
{
if (building_stmt_tree ())
finish_compound_stmt (/*has_no_scope=*/1, compound_stmt);
- else
- genrtl_finish_compound_stmt (/*has_no_scope=*/1);
if (building_stmt_tree ())
stmt_expr = finish_stmt_expr (stmt_expr);
diff --git a/gcc/cp/semantics.c b/gcc/cp/semantics.c
index c14909d..485cc59 100644
--- a/gcc/cp/semantics.c
+++ b/gcc/cp/semantics.c
@@ -2362,7 +2362,7 @@ lang_expand_stmt (t)
break;
case COMPOUND_STMT:
- rval = genrtl_compound_stmt (t);
+ genrtl_compound_stmt (t);
break;
case BREAK_STMT: