[Ada] Suppress GNAT FE up-level reference transformation for GNAT-LLVM
commit143df1f9aa4e829907d4e300a0006783fcbba71b
authorGary Dismukes <dismukes@adacore.com>
Thu, 19 Sep 2019 08:13:34 +0000 (19 08:13 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Thu, 19 Sep 2019 08:13:34 +0000 (19 08:13 +0000)
tree1db92dfc561a8d841375a7f95440ecd5e50fb717
parent1dd3915be108e6dcd7adfa01de6096419092a5de
[Ada] Suppress GNAT FE up-level reference transformation for GNAT-LLVM

In the case of GNAT-LLVM, the GNAT FE no longer does expansion of
up-level references identified by the subprogram unnesting machinery
into activation record references. This is now only done by the FE when
generating C code. This expansion is already taken care of by the
gnat-llvm middle phase, so there's no benefit to also doing it in the
front end.

2019-09-19  Gary Dismukes  <dismukes@adacore.com>

gcc/ada/

* exp_unst.adb (Unnest_Subprogram): Bypass the transformation of
up-level references unless Opt.Generate_C_Code is enabled.

From-SVN: r275942
gcc/ada/ChangeLog
gcc/ada/exp_unst.adb