gimplify.c (gimplify_init_constructor): Arrange for the temporary captures of compone...
authorOlivier Hainque <hainque@adacore.com>
Mon, 21 Aug 2006 16:01:03 +0000 (16:01 +0000)
committerOlivier Hainque <hainque@gcc.gnu.org>
Mon, 21 Aug 2006 16:01:03 +0000 (16:01 +0000)
commit85d89e767bb134b00064ee219f63860d06444913
tree8acf15334fbe025b7be884c79c7e9d4f19fa984c
parentc5d434177058f2357999cdd060d5fe84c0a8cc64
gimplify.c (gimplify_init_constructor): Arrange for the temporary captures of components overlapping the lhs to happen...

* 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.

From-SVN: r116300
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]