trans.c (Loop_Statement_to_gnu): Use sizetype instead of size_type_node.
2012-02-01 Tristan Gingold <gingold@adacore.com> * gcc-interface/trans.c (Loop_Statement_to_gnu): Use sizetype instead of size_type_node. From-SVN: r183793
This commit is contained in:
parent
99ea07f8f0
commit
337c6e076c
1 changed files with 3 additions and 4 deletions
|
@ -2380,15 +2380,14 @@ Loop_Statement_to_gnu (Node_Id gnat_node)
|
|||
|
||||
/* Otherwise, use the do-while form with the help of a special
|
||||
induction variable in the unsigned version of the base type
|
||||
or the unsigned version of the size type, whichever is the
|
||||
or the unsigned version of sizetype, whichever is the
|
||||
largest, in order to have wrap-around arithmetics for it. */
|
||||
else
|
||||
{
|
||||
if (TYPE_PRECISION (gnu_base_type)
|
||||
> TYPE_PRECISION (size_type_node))
|
||||
if (TYPE_PRECISION (gnu_base_type) > TYPE_PRECISION (sizetype))
|
||||
gnu_base_type = gnat_unsigned_type (gnu_base_type);
|
||||
else
|
||||
gnu_base_type = size_type_node;
|
||||
gnu_base_type = sizetype;
|
||||
|
||||
gnu_first = convert (gnu_base_type, gnu_first);
|
||||
gnu_last = convert (gnu_base_type, gnu_last);
|
||||
|
|
Loading…
Add table
Reference in a new issue