[multiple changes]
2004-01-16 Andrew Pinski <pinskia@physics.uc.edu> PR c++/11895 * g++.dg/ext/vector1.C: New test. 2003-08-26 Fred Fish <fnf@intrinsity.com> PR c++/11895 * decl.c (reshape_init): Handle VECTOR_TYPE like ARRAY_TYPE, except don't call array_type_nelts() with a VECTOR_TYPE. From-SVN: r76038
This commit is contained in:
parent
aeeb0e1b8c
commit
6f27961ac0
4 changed files with 18 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
|||
2003-08-26 Fred Fish <fnf@intrinsity.com>
|
||||
|
||||
PR c++/11895
|
||||
* decl.c (reshape_init): Handle VECTOR_TYPE like ARRAY_TYPE,
|
||||
except don't call array_type_nelts() with a VECTOR_TYPE.
|
||||
|
||||
2004-01-16 Jan Hubicka <jh@suse.cz>
|
||||
|
||||
* mangle.c (write_mangled_name): Remove inline modifier.
|
||||
|
|
|
@ -4330,14 +4330,14 @@ reshape_init (tree type, tree *initp)
|
|||
}
|
||||
}
|
||||
}
|
||||
else if (TREE_CODE (type) == ARRAY_TYPE)
|
||||
else if ((TREE_CODE (type) == ARRAY_TYPE)|| (TREE_CODE (type) == VECTOR_TYPE))
|
||||
{
|
||||
tree index;
|
||||
tree max_index;
|
||||
|
||||
/* If the bound of the array is known, take no more initializers
|
||||
than are allowed. */
|
||||
max_index = (TYPE_DOMAIN (type)
|
||||
max_index = ((TYPE_DOMAIN (type) && (TREE_CODE (type) == ARRAY_TYPE))
|
||||
? array_type_nelts (type) : NULL_TREE);
|
||||
/* Loop through the array elements, gathering initializers. */
|
||||
for (index = size_zero_node;
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
2004-01-16 Andrew Pinski <pinskia@physics.uc.edu>
|
||||
|
||||
PR c++/11895
|
||||
* g++.dg/ext/vector1.C: New test.
|
||||
|
||||
2004-01-16 Geoffrey Keating <geoffk@apple.com>
|
||||
|
||||
* gcc.dg/pch/import-1.c: New.
|
||||
|
|
5
gcc/testsuite/g++.dg/ext/vector1.C
Normal file
5
gcc/testsuite/g++.dg/ext/vector1.C
Normal file
|
@ -0,0 +1,5 @@
|
|||
// PR c++/11895
|
||||
// This used to ICE in reshape_init.
|
||||
// testcase from fnf@ninemoons.com
|
||||
|
||||
__attribute__((vector_size(16))) int a1 = { 100, 200, 300, 400 };
|
Loading…
Add table
Reference in a new issue