mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-12-18 16:44:57 +08:00
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:
parent
26ef43017a
commit
a3428e0701
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user