aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2008-05-25 03:58:15 +0000
committerAlan Modra <amodra@gcc.gnu.org>2008-05-25 13:28:15 +0930
commitdd25a747c916bf685457171d18712bbff325babc (patch)
tree10de1a929aea6ab2bd2733ac21e937d4ec186730 /gcc/tree.c
parentbcfef99b785c04701dd07510a903b8b90a6d5869 (diff)
downloadgcc-dd25a747c916bf685457171d18712bbff325babc.zip
gcc-dd25a747c916bf685457171d18712bbff325babc.tar.gz
gcc-dd25a747c916bf685457171d18712bbff325babc.tar.bz2
Delete get_inner_array_type. Use strip_array_types instead.
From-SVN: r135858
Diffstat (limited to 'gcc/tree.c')
-rw-r--r--gcc/tree.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/gcc/tree.c b/gcc/tree.c
index 51eba92..38e0693 100644
--- a/gcc/tree.c
+++ b/gcc/tree.c
@@ -5682,14 +5682,12 @@ build_array_type (tree elt_type, tree index_type)
return t;
}
-/* Return the TYPE of the elements comprising
- the innermost dimension of ARRAY. */
+/* Recursively examines the array elements of TYPE, until a non-array
+ element type is found. */
tree
-get_inner_array_type (const_tree array)
+strip_array_types (tree type)
{
- tree type = TREE_TYPE (array);
-
while (TREE_CODE (type) == ARRAY_TYPE)
type = TREE_TYPE (type);