aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2009-04-20 14:11:34 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2009-04-20 14:11:34 +0000
commit87a5b4cc3c685ec64acccc0f9fa25b6a51f60f66 (patch)
treebf0d148c757ab3059e36ba96092c021f4f472894 /gcc/expr.c
parent438c239d7629e2107dd831760835895c82f7d8f3 (diff)
downloadgcc-87a5b4cc3c685ec64acccc0f9fa25b6a51f60f66.zip
gcc-87a5b4cc3c685ec64acccc0f9fa25b6a51f60f66.tar.gz
gcc-87a5b4cc3c685ec64acccc0f9fa25b6a51f60f66.tar.bz2
expr.c (handled_component_p): Move ...
2009-04-20 Richard Guenther <rguenther@suse.de> * expr.c (handled_component_p): Move ... * tree.h (handled_component_p): ... here. * tree.def: Re-order BIT_FIELD_REF, COMPONENT_REF, ARRAY_REF, ARRAY_RANGE_REF, VIEW_CONVERT_EXPR, IMAGPART_EXPR and REALPART_EXPR to be in one group. From-SVN: r146427
Diffstat (limited to 'gcc/expr.c')
-rw-r--r--gcc/expr.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/gcc/expr.c b/gcc/expr.c
index cd530d0..ce740d2 100644
--- a/gcc/expr.c
+++ b/gcc/expr.c
@@ -6199,27 +6199,6 @@ component_ref_field_offset (tree exp)
else
return SUBSTITUTE_PLACEHOLDER_IN_EXPR (DECL_FIELD_OFFSET (field), exp);
}
-
-/* Return 1 if T is an expression that get_inner_reference handles. */
-
-int
-handled_component_p (const_tree t)
-{
- switch (TREE_CODE (t))
- {
- case BIT_FIELD_REF:
- case COMPONENT_REF:
- case ARRAY_REF:
- case ARRAY_RANGE_REF:
- case VIEW_CONVERT_EXPR:
- case REALPART_EXPR:
- case IMAGPART_EXPR:
- return 1;
-
- default:
- return 0;
- }
-}
/* Given an rtx VALUE that may contain additions and multiplications, return
an equivalent value that just refers to a register, memory, or constant.