diff options
author | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-03-21 18:09:20 +0000 |
---|---|---|
committer | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-03-21 18:09:20 +0000 |
commit | 55f9d7dcd373061a4699e25a28e3dbb86a92ff5a (patch) | |
tree | 7935f9b36f94acbc172af472df20b0384eb56ff8 /gcc/alias.c | |
parent | e6d8a6d58af6a8df4fe5070f9a02d36997939d71 (diff) | |
download | gcc-55f9d7dcd373061a4699e25a28e3dbb86a92ff5a.tar.gz |
* alias.c (get_alias_set): Remove handling of PLACEHOLDER_EXPR.
* emit-rtl.c (component_ref_for_mem_expr): Likewise.
(set_mem_attributes_minus_bitpos): Call SUBSTITUTE_PLACEHOLDER_IN_EXPR.
* explow.c (expr_size): Likewise.
* expr.h (placeholder_list, find_placeholder): Deleted.
* expr.c (store_constructor): Likewise.
(get_inner_reference): Likewise. Also don't call find_placeholder.
(placeholder_list, find_placeholder): Deleted.
(is_aligning_offset): Don't handle WITH_RECORD_EXPR, PLACEHOLDER_EXPR.
(expand_expr_real, cases PLACEHOLDER_EXPR, WITH_RECORD_EXPR): Likewise.
(highest_pow2_factor, case WITH_RECORD_EXPR): Remove.
* dojump.c (do_jump, case WITH_RECORD_EXPR): Likewise.
* dwarf2out.c (loc_descriptor_from_tree, case WITH_RECORD_EXPR):
Likewise.
* fold-const.c (invert_truthvalue, case WITH_RECORD_EXPR): Likewise.
(extract_muldiv, case WITH_RECORD_EXPR): Likewise.
* tree.c (expr_align, case WITH_RECORD_EXPR): Likewise.
(contains_placeholder_p): Don't handle WITH_RECORD_EXPR.
Clean up by using first_rtl_op.
(substitute_in_expr): Use SUBSTITUTE_IN_EXPR for recursive call.
(substitute_placeholder_in_expr): New function.
* tree.def (WITH_RECORD_EXPR): Deleted.
* tree.h (SUBSTITUTE_IN_EXPR, SUBSTITUTE_PLACEHOLDER_IN_EXPR): New.
(substitute_placeholder_in_expr): New.
* ada/decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
* ada/trans.c (tree_transform, emit_index_check): Likewise.
* ada/utils.c (build_template): Likewise.
(max_size, convert): Remove handling of WITH_RECORD_EXPR.
(maybe_unconstrained_array, unchecked_convert): Likewise.
* ada/utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
(build_unary_op): Likewise.
(compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
(fill_vms_descriptor): Likewise.
(build_call_alloc_dealloc): Likewise.
ALIGN is unsigned.
* ada/gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@79789 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/alias.c')
-rw-r--r-- | gcc/alias.c | 25 |
1 files changed, 6 insertions, 19 deletions
diff --git a/gcc/alias.c b/gcc/alias.c index 2c7770d32f6..be10ba688a6 100644 --- a/gcc/alias.c +++ b/gcc/alias.c @@ -481,7 +481,6 @@ get_alias_set (tree t) if (! TYPE_P (t)) { tree inner = t; - tree placeholder_ptr = 0; /* Remove any nops, then give the language a chance to do something with this tree before we look at it. */ @@ -491,16 +490,10 @@ get_alias_set (tree t) return set; /* First see if the actual object referenced is an INDIRECT_REF from a - restrict-qualified pointer or a "void *". Replace - PLACEHOLDER_EXPRs. */ - while (TREE_CODE (inner) == PLACEHOLDER_EXPR - || handled_component_p (inner)) + restrict-qualified pointer or a "void *". */ + while (handled_component_p (inner)) { - if (TREE_CODE (inner) == PLACEHOLDER_EXPR) - inner = find_placeholder (inner, &placeholder_ptr); - else - inner = TREE_OPERAND (inner, 0); - + inner = TREE_OPERAND (inner, 0); STRIP_NOPS (inner); } @@ -546,16 +539,10 @@ get_alias_set (tree t) } /* Otherwise, pick up the outermost object that we could have a pointer - to, processing conversion and PLACEHOLDER_EXPR as above. */ - placeholder_ptr = 0; - while (TREE_CODE (t) == PLACEHOLDER_EXPR - || (handled_component_p (t) && ! can_address_p (t))) + to, processing conversions as above. */ + while (handled_component_p (t) && ! can_address_p (t)) { - if (TREE_CODE (t) == PLACEHOLDER_EXPR) - t = find_placeholder (t, &placeholder_ptr); - else - t = TREE_OPERAND (t, 0); - + t = TREE_OPERAND (t, 0); STRIP_NOPS (t); } |