r260597 - in /trunk/gcc: ada/ChangeLog ada/exp_...
pmderodat@gcc.gnu.org
pmderodat@gcc.gnu.org
Wed May 23 10:23:00 GMT 2018
Author: pmderodat
Date: Wed May 23 10:23:54 2018
New Revision: 260597
URL: https://gcc.gnu.org/viewcvs?rev=260597&root=gcc&view=rev
Log:
[Ada] Spurious Storage_Error on imported array
This patch moves the check which verifies that a large modular array is created
from expansion to freezing in order to take interfacing pragmas in account. The
check is no longer performed on imported objects because no object is created
in that case.
2018-05-23 Hristian Kirtchev <kirtchev@adacore.com>
gcc/ada/
* exp_ch3.adb (Check_Large_Modular_Array): Moved to Freeze.
(Expand_N_Object_Declaration): Do not check for a large modular array
here.
* freeze.adb (Check_Large_Modular_Array): Moved from Exp_Ch3.
(Freeze_Object_Declaration): Code cleanup. Check for a large modular
array.
* sem_ch3.adb: Minor reformatting.
gcc/testsuite/
* gnat.dg/import2.adb: New testcase.
Added:
trunk/gcc/testsuite/gnat.dg/import2.adb
Modified:
trunk/gcc/ada/ChangeLog
trunk/gcc/ada/exp_ch3.adb
trunk/gcc/ada/freeze.adb
trunk/gcc/ada/sem_ch3.adb
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-cvs
mailing list