===================================================================
@@ -1328,6 +1328,7 @@ build_vector_stat (tree type, tree *vals
v = ggc_alloc_zone_cleared_tree_node_stat (&tree_zone, length PASS_MEM_STAT);
TREE_SET_CODE (v, VECTOR_CST);
+ TREE_CONSTANT (v) = 1;
TREE_TYPE (v) = type;
/* Iterate through elements and check for overflow. */
===================================================================
@@ -4596,8 +4596,8 @@ output_constant (tree exp, unsigned HOST
elt_size = GET_MODE_SIZE (inner);
- thissize = 0;
output_constant (VECTOR_CST_ELT (exp, 0), elt_size, align);
+ thissize = elt_size;
for (i = 1; i < VECTOR_CST_NELTS (exp); ++i)
{
output_constant (VECTOR_CST_ELT (exp, i), elt_size, nalign);