aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKazu Hirata <kazu@cs.umass.edu>2004-10-08 19:57:18 +0000
committerKazu Hirata <kazu@gcc.gnu.org>2004-10-08 19:57:18 +0000
commitf5bb9a233a8d229d209b09d722140014b5320b44 (patch)
tree41cb5b6625e1dcbcfe268ce995ce90c6e7abe34a
parent2a9772e3f82d2dc90ab56076f31fb29cb8f450da (diff)
downloadgcc-f5bb9a233a8d229d209b09d722140014b5320b44.zip
gcc-f5bb9a233a8d229d209b09d722140014b5320b44.tar.gz
gcc-f5bb9a233a8d229d209b09d722140014b5320b44.tar.bz2
stmt.c (expand_decl_init): Remove.
* stmt.c (expand_decl_init): Remove. * tree.h: Remove the corresponding prototype. From-SVN: r88788
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/stmt.c42
-rw-r--r--gcc/tree.h1
3 files changed, 5 insertions, 43 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 0a21fc1..9d8d386f 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,10 @@
2004-10-08 Kazu Hirata <kazu@cs.umass.edu>
+ * stmt.c (expand_decl_init): Remove.
+ * tree.h: Remove the corresponding prototype.
+
+2004-10-08 Kazu Hirata <kazu@cs.umass.edu>
+
* integrate.c (try_constants, subst_constants, mark_stores):
Remove.
* integrate.h: Remove the prototype for try_constants.
diff --git a/gcc/stmt.c b/gcc/stmt.c
index 0037b53..3d7ad36 100644
--- a/gcc/stmt.c
+++ b/gcc/stmt.c
@@ -2052,48 +2052,6 @@ expand_stack_restore (tree var)
emit_stack_restore (SAVE_BLOCK, sa, NULL_RTX);
}
-/* Emit code to perform the initialization of a declaration DECL. */
-
-void
-expand_decl_init (tree decl)
-{
- int was_used = TREE_USED (decl);
-
- /* If this is a CONST_DECL, we don't have to generate any code. Likewise
- for static decls. */
- if (TREE_CODE (decl) == CONST_DECL
- || TREE_STATIC (decl))
- return;
-
- /* Compute and store the initial value now. */
-
- push_temp_slots ();
-
- if (DECL_INITIAL (decl) == error_mark_node)
- {
- enum tree_code code = TREE_CODE (TREE_TYPE (decl));
-
- if (code == INTEGER_TYPE || code == REAL_TYPE || code == ENUMERAL_TYPE
- || code == POINTER_TYPE || code == REFERENCE_TYPE)
- expand_assignment (decl, convert (TREE_TYPE (decl), integer_zero_node),
- 0);
- }
- else if (DECL_INITIAL (decl) && TREE_CODE (DECL_INITIAL (decl)) != TREE_LIST)
- {
- emit_line_note (DECL_SOURCE_LOCATION (decl));
- expand_assignment (decl, DECL_INITIAL (decl), 0);
- }
-
- /* Don't let the initialization count as "using" the variable. */
- TREE_USED (decl) = was_used;
-
- /* Free any temporaries we made while initializing the decl. */
- preserve_temp_slots (NULL_RTX);
- free_temp_slots ();
- pop_temp_slots ();
-}
-
-
/* DECL is an anonymous union. CLEANUP is a cleanup for DECL.
DECL_ELTS is the list of elements that belong to DECL's type.
In each, the TREE_VALUE is a VAR_DECL, and the TREE_PURPOSE a cleanup. */
diff --git a/gcc/tree.h b/gcc/tree.h
index 637fab7..89771af 100644
--- a/gcc/tree.h
+++ b/gcc/tree.h
@@ -3466,7 +3466,6 @@ extern bool commutative_tree_code (enum tree_code);
extern void expand_expr_stmt (tree);
extern void expand_expr_stmt_value (tree, int, int);
extern int warn_if_unused_value (tree, location_t);
-extern void expand_decl_init (tree);
extern void expand_label (tree);
extern void expand_goto (tree);
extern void expand_asm (tree, int);