decl.c (make_packable_type): Copy DECL_PARALLEL_TYPE onto the new type.

* gcc-interface/decl.c (make_packable_type): Copy DECL_PARALLEL_TYPE
	onto the new type.

From-SVN: r172863
This commit is contained in:
Eric Botcazou 2011-04-22 17:41:28 +00:00 committed by Eric Botcazou
parent 7d7fcb08c3
commit eb601ae15a
2 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2011-04-22 Eric Botcazou <ebotcazou@adacore.com>
* gcc-interface/decl.c (make_packable_type): Copy DECL_PARALLEL_TYPE
onto the new type.
2011-04-22 Eric Botcazou <ebotcazou@adacore.com>
* gcc-interface/gigi.h (create_subprog_decl): Add ARTIFICIAL_FLAG

View file

@ -6334,6 +6334,8 @@ make_packable_type (tree type, bool in_record)
finish_record_type (new_type, nreverse (field_list), 2, false);
relate_alias_sets (new_type, type, ALIAS_SET_COPY);
SET_DECL_PARALLEL_TYPE (TYPE_STUB_DECL (new_type),
DECL_PARALLEL_TYPE (TYPE_STUB_DECL (type)));
/* If this is a padding record, we never want to make the size smaller
than what was specified. For QUAL_UNION_TYPE, also copy the size. */