stor-layout.c (finish_builtin_struct): Copy fields into the variants.
* stor-layout.c (finish_builtin_struct): Copy fields into the variants. From-SVN: r212106
This commit is contained in:
parent
de35da36f6
commit
7ae2e72c93
2 changed files with 10 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2014-06-28 Jan Hubicka <hubicka@ucw.cz>
|
||||
|
||||
* stor-layout.c (finish_builtin_struct): Copy fields into
|
||||
the variants.
|
||||
|
||||
2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
|
||||
|
||||
* config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
|
||||
|
|
|
@ -2065,7 +2065,7 @@ void
|
|||
finish_builtin_struct (tree type, const char *name, tree fields,
|
||||
tree align_type)
|
||||
{
|
||||
tree tail, next;
|
||||
tree tail, next, variant;
|
||||
|
||||
for (tail = NULL_TREE; fields; tail = fields, fields = next)
|
||||
{
|
||||
|
@ -2074,6 +2074,10 @@ finish_builtin_struct (tree type, const char *name, tree fields,
|
|||
DECL_CHAIN (fields) = tail;
|
||||
}
|
||||
TYPE_FIELDS (type) = tail;
|
||||
for (variant = TYPE_MAIN_VARIANT (type);
|
||||
variant != 0;
|
||||
variant = TYPE_NEXT_VARIANT (variant))
|
||||
TYPE_FIELDS (variant) = tail;
|
||||
|
||||
if (align_type)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue