tree.c (unsigned_type_for, [...]): Make sure a type of the correct signedness is returned.

* tree.c (unsigned_type_for, signed_type_for): Make sure a type
	of the correct signedness is returned.

From-SVN: r113482
This commit is contained in:
Zdenek Dvorak 2006-05-02 21:59:21 +02:00 committed by Zdenek Dvorak
parent 26ef43017a
commit a3428e0701
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2006-05-02 Zdenek Dvorak <dvorakz@suse.cz>
* tree.c (unsigned_type_for, signed_type_for): Make sure a type
of the correct signedness is returned.
2006-05-02 Jeff Law <law@redhat.com>
PR tree-optimization/27364

View File

@ -6990,7 +6990,7 @@ tree
unsigned_type_for (tree type)
{
if (POINTER_TYPE_P (type))
return size_type_node;
return lang_hooks.types.unsigned_type (size_type_node);
return lang_hooks.types.unsigned_type (type);
}
@ -6999,6 +6999,8 @@ unsigned_type_for (tree type)
tree
signed_type_for (tree type)
{
if (POINTER_TYPE_P (type))
return lang_hooks.types.signed_type (size_type_node);
return lang_hooks.types.signed_type (type);
}