aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-parloops.c
diff options
context:
space:
mode:
authorSteve Baird <baird@adacore.com>2019-09-18 08:32:05 +0000
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>2019-09-18 08:32:05 +0000
commitdcbe49a6c41e586e961664512726799a540757ee (patch)
tree07231a2330abb2bdd851673b99409f8f2329cbf7 /gcc/tree-parloops.c
parente42183e72bf600aff07cdf051c2166d36fb1889d (diff)
downloadgcc-dcbe49a6c41e586e961664512726799a540757ee.zip
gcc-dcbe49a6c41e586e961664512726799a540757ee.tar.gz
gcc-dcbe49a6c41e586e961664512726799a540757ee.tar.bz2
[Ada] No Storage_Error for an oversized disabled ghost array object
In some cases where the size computation for an object declaration will unconditionally overflow, the FE generates code to raise Storage_Error at the point of the object declaration (and may generate an associated warning). Don't do this if the object declaration is an ignored (i.e., disabled) ghost declaration. 2019-09-18 Steve Baird <baird@adacore.com> gcc/ada/ * freeze.adb (Freeze_Object_Declaration): Do not call Check_Large_Modular_Array when the object declaration being frozen is an ignored ghost entity. gcc/testsuite/ * gnat.dg/ghost7.adb, gnat.dg/ghost7.ads: New testcase. From-SVN: r275845
Diffstat (limited to 'gcc/tree-parloops.c')
0 files changed, 0 insertions, 0 deletions