* gimplify.c (gimplify_init_constructor) <RECORD,UNION,ARRAY types>:
commite16856980de702ae75163acb8dd2daa038d153b0
authorhainque <hainque@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 21 Aug 2006 16:01:03 +0000 (21 16:01 +0000)
committerhainque <hainque@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 21 Aug 2006 16:01:03 +0000 (21 16:01 +0000)
tree8acf15334fbe025b7be884c79c7e9d4f19fa984c
parentf2769d7e08b6ddbd4772fa1a65bb4a1cf04d5571
* gimplify.c (gimplify_init_constructor) <RECORD,UNION,ARRAY types>:
Arrange for the temporary captures of components overlapping the lhs
to happen before the lhs is possibly cleared.

testsuite/
* gnat.dg/self_aggregate_with_zeros.adb: New test.
* gnat.dg/self_aggregate_with_array.adb: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116300 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/gimplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/self_aggregate_with_array.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/self_aggregate_with_zeros.adb [new file with mode: 0644]