diff options
author | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-11-19 20:38:07 +0000 |
---|---|---|
committer | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-11-19 20:38:07 +0000 |
commit | f96c43fb7bb186b6ddd7a93ea0a55ae3e61c4d57 (patch) | |
tree | 2542ba620d211064d29aeacfe75ac81b9312fd17 /gcc/alias.c | |
parent | 99efa43944a9c890b4cc1ab3ffc1e62c35d3b69a (diff) | |
download | gcc-f96c43fb7bb186b6ddd7a93ea0a55ae3e61c4d57.tar.gz |
* tree.def (VIEW_CONVERT_EXPR): New tree code.
* tree.h (handled_component_p): New declaration.
* alias.c (handled_component_p): Move function from here ...
* expr.c (handled_component_p): ... to here and non longer static.
(is_zeros_p, case VIEW_CONVERT_EXPR): New case.
(store_field): Remove unneeded MEM_COPY_ATTRIBUTES call.
(get_inner_reference): Handle VIEW_CONVERT_EXPR.
(expand_expr, case VAR_DECL): Clean up handling of re-layout case.
(expand_expr, case VIEW_CONVERT_EXPR): New case.
(expand_expr, cse ADDR_EXPR): No need to copy if already
BIGGEST_ALIGNMENT.
* fold-const.c (fold, case VIEW_CONVERT_EXPR): New case.
* varasm.c (initializer_constant_value_p, case VIEW_CONVERT_EXPR): New.
(output_constant): Handle VIEW_CONVERT_EXPR.
* dwarf2out.c (loc-descriptor_from_tree, add_bound_info):
Add new case for VIEW_CONVERT_EXPR.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@47179 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/alias.c')
-rw-r--r-- | gcc/alias.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/gcc/alias.c b/gcc/alias.c index 27e7e3903fd..a92cf857844 100644 --- a/gcc/alias.c +++ b/gcc/alias.c @@ -95,7 +95,6 @@ static void record_set PARAMS ((rtx, rtx, void *)); static rtx find_base_term PARAMS ((rtx)); static int base_alias_check PARAMS ((rtx, rtx, enum machine_mode, enum machine_mode)); -static int handled_component_p PARAMS ((tree)); static rtx find_base_value PARAMS ((rtx)); static int mems_in_disjoint_alias_sets_p PARAMS ((rtx, rtx)); static int insert_subset_children PARAMS ((splay_tree_node, void*)); @@ -399,31 +398,6 @@ find_base_decl (t) } } -/* Return 1 if T is an expression that get_inner_reference handles. */ - -static int -handled_component_p (t) - tree t; -{ - switch (TREE_CODE (t)) - { - case BIT_FIELD_REF: - case COMPONENT_REF: - case ARRAY_REF: - case ARRAY_RANGE_REF: - case NON_LVALUE_EXPR: - return 1; - - case NOP_EXPR: - case CONVERT_EXPR: - return (TYPE_MODE (TREE_TYPE (t)) - == TYPE_MODE (TREE_TYPE (TREE_OPERAND (t, 0)))); - - default: - return 0; - } -} - /* Return 1 if all the nested component references handled by get_inner_reference in T are such that we can address the object in T. */ |