trans.c (gnat_to_gnu): Use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT for the size...
authorEric Botcazou <ebotcazou@adacore.com>
Sat, 26 Jan 2019 15:59:34 +0000 (15:59 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Sat, 26 Jan 2019 15:59:34 +0000 (15:59 +0000)
commite54b62687aca823aebb15000d33ca59947204881
treec2e68c9bb82f728bbb67b15006f98b911bb05121
parent685ae5b8717e08e0d7b5f147ed4c6bfeff10c4f6
trans.c (gnat_to_gnu): Use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT for the size to be assigned by a...

* gcc-interface/trans.c (gnat_to_gnu) <N_Assignment_Statement>: Use
DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT for the size to be assigned
by a call to memset if the LHS is a DECL.

From-SVN: r268296
gcc/ada/ChangeLog
gcc/ada/gcc-interface/trans.c
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/array34.adb [new file with mode: 0644]