aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.c
diff options
context:
space:
mode:
authorPaolo Bonzini <bonzini@gnu.org>2008-04-02 10:01:43 +0000
committerPaolo Bonzini <bonzini@gcc.gnu.org>2008-04-02 10:01:43 +0000
commit4846b4355c6f0253228e64ade49b8bf34227d693 (patch)
treebc6023893acaf15675538b0e59d69e987ad58feb /gcc/expr.c
parent4fefbcdbe559d35de023ef4456ffbacba9bc37ad (diff)
downloadgcc-4846b4355c6f0253228e64ade49b8bf34227d693.zip
gcc-4846b4355c6f0253228e64ade49b8bf34227d693.tar.gz
gcc-4846b4355c6f0253228e64ade49b8bf34227d693.tar.bz2
expr.c (expand_var): Delete it.
2008-04-02 Paolo Bonzini <bonzini@gnu.org> * expr.c (expand_var): Delete it. * expr.h (expand_var): Delete prototype. * function.c (expand_function_start): Use expand_decl instead. * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call langhook. From-SVN: r133830
Diffstat (limited to 'gcc/expr.c')
-rw-r--r--gcc/expr.c33
1 files changed, 0 insertions, 33 deletions
diff --git a/gcc/expr.c b/gcc/expr.c
index 7ecbccf..dbb2b4c 100644
--- a/gcc/expr.c
+++ b/gcc/expr.c
@@ -6649,39 +6649,6 @@ emutls_var_address (tree var)
return fold_convert (build_pointer_type (TREE_TYPE (var)), call);
}
-/* Expands variable VAR. */
-
-void
-expand_var (tree var)
-{
- if (DECL_EXTERNAL (var))
- return;
-
- if (TREE_STATIC (var))
- /* If this is an inlined copy of a static local variable,
- look up the original decl. */
- var = DECL_ORIGIN (var);
-
- if (TREE_STATIC (var)
- ? !TREE_ASM_WRITTEN (var)
- : !DECL_RTL_SET_P (var))
- {
- if (TREE_CODE (var) == VAR_DECL && DECL_HAS_VALUE_EXPR_P (var))
- /* Should be ignored. */;
- else if (lang_hooks.expand_decl (var))
- /* OK. */;
- else if (TREE_CODE (var) == VAR_DECL && !TREE_STATIC (var))
- expand_decl (var);
- else if (TREE_CODE (var) == VAR_DECL && TREE_STATIC (var))
- rest_of_decl_compilation (var, 0, 0);
- else
- /* No expansion needed. */
- gcc_assert (TREE_CODE (var) == TYPE_DECL
- || TREE_CODE (var) == CONST_DECL
- || TREE_CODE (var) == FUNCTION_DECL
- || TREE_CODE (var) == LABEL_DECL);
- }
-}
/* Subroutine of expand_expr. Expand the two operands of a binary
expression EXP0 and EXP1 placing the results in OP0 and OP1.