exp_ch6.adb (Expand_N_Subprogram_Body): Mark the spec as returning by reference not...
authorHristian Kirtchev <kirtchev@adacore.com>
Thu, 19 Jan 2017 11:37:39 +0000 (11:37 +0000)
committerArnaud Charlet <charlet@gcc.gnu.org>
Thu, 19 Jan 2017 11:37:39 +0000 (12:37 +0100)
commitd6e1090ae6b767f5ce0f0237a9763bed24545dd1
treec902415ecc44040cdfb956d141e9bbc066273bbe
parentde01377ca91e88226f919c84677d82c65dec6adf
exp_ch6.adb (Expand_N_Subprogram_Body): Mark the spec as returning by reference not just for subprogram body stubs...

2017-01-19  Hristian Kirtchev  <kirtchev@adacore.com>

* exp_ch6.adb (Expand_N_Subprogram_Body): Mark the spec as
returning by reference not just for subprogram body stubs,
but for all subprogram cases.
* sem_util.adb: Code reformatting.
(Requires_Transient_Scope): Update the call to Results_Differ.
(Results_Differ): Update the parameter profile and the associated
comment on usage.

From-SVN: r244616
gcc/ada/ChangeLog
gcc/ada/exp_ch6.adb
gcc/ada/sem_util.adb