* gcc.dg/compat/struct-layout-1_generate.c (generate_fields):
Do not put aligned attributes on array elements.
From-SVN: r105094
+2005-10-07 Steve Ellcey <sje@cup.hp.com>
+
+ * gcc.dg/compat/struct-layout-1_generate.c (generate_fields):
+ Do not put aligned attributes on array elements.
+
2005-10-07 Ulrich Weigand <uweigand@de.ibm.com>
PR testsuite/23611, PR testsuite/23615
|| (e[n].type >= &aligned_bitfld_types[0]
&& e[n].type < &aligned_bitfld_types[n_aligned_bitfld_types])))
e[n].attrib = NULL;
+
+ /* If this is an array type, do not put aligned attributes on
+ elements. Aligning elements to a value greater than their
+ size will result in a compiler error. */
+
+ if ((e[n].etype == ETYPE_ARRAY)
+ && (strncmp (e[n].attrib, "atal", 4) == 0))
+ e[n].attrib = NULL;
}
}
}