Commit 88df93ce by Richard Guenther Committed by Richard Biener

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
parent 40ed057b
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> 2010-09-10 Jakub Jelinek <jakub@redhat.com>
PR bootstrap/45630 PR bootstrap/45630
......
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> 2010-09-10 Arnaud Charlet <charlet@adacore.com>
* vms_cmds.ads: New. * vms_cmds.ads: New.
......
...@@ -1156,7 +1156,7 @@ tree ...@@ -1156,7 +1156,7 @@ tree
create_index_type (tree min, tree max, tree index, Node_Id gnat_node) create_index_type (tree min, tree max, tree index, Node_Id gnat_node)
{ {
/* First build a type for the desired range. */ /* 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 this type has the TYPE_INDEX_TYPE we want, return it. */
if (TYPE_INDEX_TYPE (type) == index) if (TYPE_INDEX_TYPE (type) == index)
......
...@@ -7191,15 +7191,6 @@ subrange_type_for_debug_p (const_tree type, tree *lowval, tree *highval) ...@@ -7191,15 +7191,6 @@ subrange_type_for_debug_p (const_tree type, tree *lowval, tree *highval)
return true; 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 /* 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. and number of elements specified by the range of values of INDEX_TYPE.
If such a type has already been constructed, reuse it. */ If such a type has already been constructed, reuse it. */
......
...@@ -4086,7 +4086,6 @@ extern tree build_vector_type (tree innertype, int nunits); ...@@ -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_opaque_vector_type (tree innertype, int nunits);
extern tree build_type_no_quals (tree); extern tree build_type_no_quals (tree);
extern tree build_index_type (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_array_type (tree, tree);
extern tree build_function_type (tree, tree); extern tree build_function_type (tree, tree);
extern tree build_function_type_list (tree, ...); extern tree build_function_type_list (tree, ...);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment