aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2010-09-10 10:54:24 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2010-09-10 10:54:24 +0000
commit88df93ce3baa8e070122533b31928d3876138488 (patch)
tree52bbfc8b0f568a45141cb55233730665d6be7f43 /gcc/ada
parent40ed057ba7ce8b8a00d88aae5ce14133faa83fd0 (diff)
downloadgcc-88df93ce3baa8e070122533b31928d3876138488.zip
gcc-88df93ce3baa8e070122533b31928d3876138488.tar.gz
gcc-88df93ce3baa8e070122533b31928d3876138488.tar.bz2
tree.h (build_index_2_type): Remove.
2010-09-10 Richard Guenther <rguenther@suse.de> * tree.h (build_index_2_type): Remove. * tree.c (build_index_2_type): Remove. ada/gcc-interface/ * utils.c (create_index_type): Use build_range_type. From-SVN: r164164
Diffstat (limited to 'gcc/ada')
-rw-r--r--gcc/ada/ChangeLog4
-rw-r--r--gcc/ada/gcc-interface/utils.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog
index c1611e5..6092a21 100644
--- a/gcc/ada/ChangeLog
+++ b/gcc/ada/ChangeLog
@@ -1,3 +1,7 @@
+2010-09-10 Richard Guenther <rguenther@suse.de>
+
+ * gcc-interface/utils.c (create_index_type): Use build_range_type.
+
2010-09-10 Arnaud Charlet <charlet@adacore.com>
* vms_cmds.ads: New.
diff --git a/gcc/ada/gcc-interface/utils.c b/gcc/ada/gcc-interface/utils.c
index c3a39d4..cadc4d7 100644
--- a/gcc/ada/gcc-interface/utils.c
+++ b/gcc/ada/gcc-interface/utils.c
@@ -1156,7 +1156,7 @@ tree
create_index_type (tree min, tree max, tree index, Node_Id gnat_node)
{
/* First build a type for the desired range. */
- tree type = build_index_2_type (min, max);
+ tree type = build_range_type (sizetype, min, max);
/* If this type has the TYPE_INDEX_TYPE we want, return it. */
if (TYPE_INDEX_TYPE (type) == index)