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
This commit is contained in:
Richard Guenther 2010-09-10 10:54:24 +00:00 committed by Richard Biener
parent 40ed057ba7
commit 88df93ce3b
5 changed files with 10 additions and 11 deletions

View 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

View 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.

View 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)

View 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. */

View 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, ...);