diff options
author | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-04-22 17:41:28 +0000 |
---|---|---|
committer | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-04-22 17:41:28 +0000 |
commit | 3a6aa2be4a80cbf3750ff0f8a7accbd137be8b90 (patch) | |
tree | dfe153cd2fc46e499a6eeb3ee7f00665787e284a | |
parent | 2cb54d0da654bfce7aa8f8027c8fbf50b1d7a494 (diff) | |
download | gcc-3a6aa2be4a80cbf3750ff0f8a7accbd137be8b90.tar.gz |
* gcc-interface/decl.c (make_packable_type): Copy DECL_PARALLEL_TYPE
onto the new type.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@172863 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ada/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/ada/gcc-interface/decl.c | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index 31a892ce91a..70df1752a05 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,5 +1,10 @@ 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 parameter. * gcc-interface/utils.c (create_subprog_decl): Likewise. Set diff --git a/gcc/ada/gcc-interface/decl.c b/gcc/ada/gcc-interface/decl.c index c8e662ec0ef..14929b8466c 100644 --- a/gcc/ada/gcc-interface/decl.c +++ b/gcc/ada/gcc-interface/decl.c @@ -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. */ |