Commit 79a1aca7 by Steve Ellcey Committed by Steve Ellcey

struct-layout-1_generate.c (generate_fields): Do not put aligned attributes on array elements.

	* gcc.dg/compat/struct-layout-1_generate.c (generate_fields):
	Do not put aligned attributes on array elements.

From-SVN: r105094
parent 9bff16b8
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> 2005-10-07 Ulrich Weigand <uweigand@de.ibm.com>
PR testsuite/23611, PR testsuite/23615 PR testsuite/23611, PR testsuite/23615
...@@ -1743,6 +1743,14 @@ generate_fields (enum FEATURE features, struct entry *e, struct entry *parent, ...@@ -1743,6 +1743,14 @@ generate_fields (enum FEATURE features, struct entry *e, struct entry *parent,
|| (e[n].type >= &aligned_bitfld_types[0] || (e[n].type >= &aligned_bitfld_types[0]
&& e[n].type < &aligned_bitfld_types[n_aligned_bitfld_types]))) && e[n].type < &aligned_bitfld_types[n_aligned_bitfld_types])))
e[n].attrib = NULL; 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;
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment