re PR c/34993 (ICE with attribute for array with unknown bound)
PR c/34993 * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN for unbounded arrays. From-SVN: r131970
This commit is contained in:
parent
996b13caed
commit
2ae7b972a6
|
@ -1,3 +1,9 @@
|
||||||
|
2008-01-30 Richard Henderson <rth@redhat.com>
|
||||||
|
|
||||||
|
PR c/34993
|
||||||
|
* tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
|
||||||
|
for unbounded arrays.
|
||||||
|
|
||||||
2008-01-30 Silvius Rus <rus@google.com>
|
2008-01-30 Silvius Rus <rus@google.com>
|
||||||
|
|
||||||
* config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
|
* config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
/* PR c/34993 */
|
||||||
|
|
||||||
|
/* { dg-do compile } */
|
||||||
|
|
||||||
|
typedef int x[] __attribute((may_alias));
|
|
@ -3701,8 +3701,9 @@ build_type_attribute_qual_variant (tree ttype, tree attribute, int quals)
|
||||||
hashcode = type_hash_list (TYPE_ARG_TYPES (ntype), hashcode);
|
hashcode = type_hash_list (TYPE_ARG_TYPES (ntype), hashcode);
|
||||||
break;
|
break;
|
||||||
case ARRAY_TYPE:
|
case ARRAY_TYPE:
|
||||||
hashcode = iterative_hash_object (TYPE_HASH (TYPE_DOMAIN (ntype)),
|
if (TYPE_DOMAIN (ntype))
|
||||||
hashcode);
|
hashcode = iterative_hash_object (TYPE_HASH (TYPE_DOMAIN (ntype)),
|
||||||
|
hashcode);
|
||||||
break;
|
break;
|
||||||
case INTEGER_TYPE:
|
case INTEGER_TYPE:
|
||||||
hashcode = iterative_hash_object
|
hashcode = iterative_hash_object
|
||||||
|
|
Loading…
Reference in New Issue