* c-decl.c (grokdeclarator): preserve previous alignments when
rebuilding array types.
From-SVN: r38122
+2000-12-07 DJ Delorie <dj@redhat.com>
+
+ * c-decl.c (grokdeclarator): preserve previous alignments when
+ rebuilding array types.
+
2000-12-07 Neil Booth <neilb@earthling.net>
* cppfiles.c (struct include_file): Move from cpphash.h.
/* Move type qualifiers down to element of an array. */
if (TREE_CODE (type) == ARRAY_TYPE && type_quals)
{
+ int saved_align = TYPE_ALIGN(type);
type = build_array_type (c_build_qualified_type (TREE_TYPE (type),
type_quals),
TYPE_DOMAIN (type));
+ TYPE_ALIGN (type) = saved_align;
#if 0 /* Leave the variable const or volatile as well. */
type_quals = TYPE_UNQUALIFIED;
#endif