exp_ch5.adb (Expand_Simple_Function_Return): If secondary stack is involved and the...
authorEd Schonberg <schonberg@adacore.com>
Fri, 22 Aug 2008 12:41:30 +0000 (14:41 +0200)
committerArnaud Charlet <charlet@gcc.gnu.org>
Fri, 22 Aug 2008 12:41:30 +0000 (14:41 +0200)
commit87cd63ba592c3327adb7846bfdd92ee066ae3030
treed916e7cfc50ceff8118c4cb84252070bccbb8cc9
parent116c24a05cd68221a2e832c0a7c0d9225c7e4d20
exp_ch5.adb (Expand_Simple_Function_Return): If secondary stack is involved and the return type is class-wide...

2008-08-22  Ed Schonberg  <schonberg@adacore.com>

* exp_ch5.adb (Expand_Simple_Function_Return): If secondary stack is
involved and the return type is class-wide, use the type of the expression
for the generated access type. Suppress useless discriminant checks on the
allocator.

From-SVN: r139447
gcc/ada/exp_ch5.adb