aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimplify.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2004-11-29 19:52:37 -0800
committerRichard Henderson <rth@gcc.gnu.org>2004-11-29 19:52:37 -0800
commitafe849213eed9764b4579ba081c111a0b3ddde25 (patch)
tree4b6086cd760db3d4e0eef4da7e0f58d8a24f0d0a /gcc/gimplify.c
parentf2978871b26c69d516916d280e81cc1f9b460416 (diff)
downloadgcc-afe849213eed9764b4579ba081c111a0b3ddde25.zip
gcc-afe849213eed9764b4579ba081c111a0b3ddde25.tar.gz
gcc-afe849213eed9764b4579ba081c111a0b3ddde25.tar.bz2
expr.c (get_inner_reference): Handle REAL/IMAGPART_EXPR.
* expr.c (get_inner_reference): Handle REAL/IMAGPART_EXPR. (handled_component_p): Likewise. * alias.c (can_address_p): Reformat and simplify. Handle REAL/IMAGPART_EXPR. Do not disable addressability based on alias set zero. * fold-const.c (build_fold_addr_expr_with_type): Remove duplicate check for REAL/IMAGPART_EXPR. * gimplify.c (gimplify_compound_lval): Likewise. * tree-cfg.c (verify_expr): Likewise. * tree-gimple.c (is_gimple_addressable, get_base_address): Likewise. * tree-nested.c (build_addr, convert_nonlocal_reference): Likewise. (convert_local_reference): Likewise. * tree-ssa-loop-ivopts.c (prepare_decl_rtl): Likewise. From-SVN: r91511
Diffstat (limited to 'gcc/gimplify.c')
-rw-r--r--gcc/gimplify.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/gcc/gimplify.c b/gcc/gimplify.c
index ecd4271..6ee49b6 100644
--- a/gcc/gimplify.c
+++ b/gcc/gimplify.c
@@ -1427,12 +1427,8 @@ gimplify_compound_lval (tree *expr_p, tree *pre_p,
it VARRAY_TREE. */
VARRAY_GENERIC_PTR_NOGC_INIT (stack, 10, "stack");
- /* We can either handle REALPART_EXPR, IMAGEPART_EXPR anything that
- handled_components can deal with. */
- for (p = expr_p;
- (handled_component_p (*p)
- || TREE_CODE (*p) == REALPART_EXPR || TREE_CODE (*p) == IMAGPART_EXPR);
- p = &TREE_OPERAND (*p, 0))
+ /* We can handle anything that get_inner_reference can deal with. */
+ for (p = expr_p; handled_component_p (*p); p = &TREE_OPERAND (*p, 0))
VARRAY_PUSH_GENERIC_PTR_NOGC (stack, *p);
gcc_assert (VARRAY_ACTIVE_SIZE (stack));