of the correct signedness is returned.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@113482
138bc75d-0d04-0410-961f-
82ee72b054a4
+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
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);
}
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);
}