Commit 8f215dce by Jakub Jelinek Committed by Jakub Jelinek

c-common.c (c_get_alias_set): Check whether signed_type did not return its…

c-common.c (c_get_alias_set): Check whether signed_type did not return its argument before calling...

	* c-common.c (c_get_alias_set): Check whether signed_type did not
	return its argument before calling get_alias_set on the result.

From-SVN: r34356
parent bec7ddd7
2000-06-02 Jakub Jelinek <jakub@redhat.com>
* c-common.c (c_get_alias_set): Check whether signed_type did not
return its argument before calling get_alias_set on the result.
2000-06-02 Andrew MacLeod <amacleod@cygnus.com> 2000-06-02 Andrew MacLeod <amacleod@cygnus.com>
* expr.c (emit_group_load): Fix typo, GET_MODE not GET_CODE. * expr.c (emit_group_load): Fix typo, GET_MODE not GET_CODE.
......
...@@ -3298,8 +3298,13 @@ c_get_alias_set (t) ...@@ -3298,8 +3298,13 @@ c_get_alias_set (t)
unsigned variants of the same type. We treat the signed unsigned variants of the same type. We treat the signed
variant as canonical. */ variant as canonical. */
if (TREE_CODE (t) == INTEGER_TYPE && TREE_UNSIGNED (t)) if (TREE_CODE (t) == INTEGER_TYPE && TREE_UNSIGNED (t))
return get_alias_set (signed_type (t)); {
tree t1 = signed_type (t);
/* t1 == t can happen for boolean nodes which are always unsigned. */
if (t1 != t)
return get_alias_set (t1);
}
else if (POINTER_TYPE_P (t)) else if (POINTER_TYPE_P (t))
{ {
tree t1; tree t1;
......
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