]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
tree.h (build_index_2_type): Remove.
authorRichard Guenther <rguenther@suse.de>
Fri, 10 Sep 2010 10:54:24 +0000 (10:54 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 10 Sep 2010 10:54:24 +0000 (10:54 +0000)
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

gcc/ChangeLog
gcc/ada/ChangeLog
gcc/ada/gcc-interface/utils.c
gcc/tree.c
gcc/tree.h

index 3a5139997bd7f2579aa7db15b333356099446939..0c5b0ed28fbdf379137690315b3cbc389b8cc834 100644 (file)
@@ -1,3 +1,8 @@
+2010-09-10  Richard Guenther  <rguenther@suse.de>
+
+       * tree.h (build_index_2_type): Remove.
+       * tree.c (build_index_2_type): Remove.
+
 2010-09-10  Jakub Jelinek  <jakub@redhat.com>
 
        PR bootstrap/45630
index c1611e5c471a212193e2ebc849e5eeca0e045938..6092a21743a1ceb6c23780e5b3c7d47b5c2af803 100644 (file)
@@ -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.
index c3a39d4435786ee62e29e36075e340d2618b3c38..cadc4d7c0daa0d32486f2a05fc4ba95cffdad719 100644 (file)
@@ -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)
index 677e3bbf7e42a0d3ff5ad951f36933a9db7e0f94..7ea69c8cbc5edf86c153f1f507c0458227e7eb97 100644 (file)
@@ -7191,15 +7191,6 @@ subrange_type_for_debug_p (const_tree type, tree *lowval, tree *highval)
   return true;
 }
 
-/* Just like build_index_type, but takes lowval and highval instead
-   of just highval (maxval).  */
-
-tree
-build_index_2_type (tree lowval, tree highval)
-{
-  return build_range_type (sizetype, lowval, highval);
-}
-
 /* Construct, lay out and return the type of arrays of elements with ELT_TYPE
    and number of elements specified by the range of values of INDEX_TYPE.
    If such a type has already been constructed, reuse it.  */
index 96555e2eecc047883191077516941fd51afcb606..4fc6725e6536eeb6b7b6214a09b31c15c3884f69 100644 (file)
@@ -4086,7 +4086,6 @@ extern tree build_vector_type (tree innertype, int nunits);
 extern tree build_opaque_vector_type (tree innertype, int nunits);
 extern tree build_type_no_quals (tree);
 extern tree build_index_type (tree);
-extern tree build_index_2_type (tree, tree);
 extern tree build_array_type (tree, tree);
 extern tree build_function_type (tree, tree);
 extern tree build_function_type_list (tree, ...);