exp_ch9.adb (Build_Simple_Entry_Call): Set_Is_Internal on the temporary object used...
commite83ed69230cd8893af4fb5309e55fcbf663be112
authorGary Dismukes <dismukes@adacore.com>
Fri, 16 Oct 2015 12:22:22 +0000 (16 12:22 +0000)
committerArnaud Charlet <charlet@gcc.gnu.org>
Fri, 16 Oct 2015 12:22:22 +0000 (16 14:22 +0200)
tree40dc89e985fd0bafa3c6714684353ab06c6b1663
parentf145ece72186e2b18d2152387bd18647ed5a046d
exp_ch9.adb (Build_Simple_Entry_Call): Set_Is_Internal on the temporary object used for a by-copy entry parameter...

2015-10-16  Gary Dismukes  <dismukes@adacore.com>

* exp_ch9.adb (Build_Simple_Entry_Call): Set_Is_Internal on
the temporary object used for a by-copy entry parameter, to
ensure that the object doesn't get its No_Initialization flag
reset later in Default_Initialize_Object. Also, generate the
assignment of the actual to the temporary in the additional case
of a scalar out parameter whose type has a Default_Value aspect.
* exp_ch3.adb: Fix minor typo in comment.

From-SVN: r228879
gcc/ada/ChangeLog
gcc/ada/exp_ch3.adb
gcc/ada/exp_ch9.adb