Commit 3ae9d953 by Arnaud Charlet Committed by Pierre-Marie de Rodat

[Ada] Unnest all subprograms relevant for code generation

2018-05-21  Arnaud Charlet  <charlet@adacore.com>

gcc/ada/

	* exp_unst.adb (Unnest_Subprogram): Unnest all subprograms relevant for
	code generation.

From-SVN: r260446
parent 0c06611c
2018-04-04 Arnaud Charlet <charlet@adacore.com>
* exp_unst.adb (Unnest_Subprogram): Unnest all subprograms relevant for
code generation.
2018-04-04 Piotr Trojanek <trojanek@adacore.com> 2018-04-04 Piotr Trojanek <trojanek@adacore.com>
* lib.ads: Fix typo in enumeration in comment. * lib.ads: Fix typo in enumeration in comment.
......
...@@ -312,9 +312,9 @@ package body Exp_Unst is ...@@ -312,9 +312,9 @@ package body Exp_Unst is
return; return;
end if; end if;
-- At least for now, do not unnest anything but main source unit -- Only unnest when generating code for the main source unit
if not In_Extended_Main_Source_Unit (Subp_Body) then if not In_Extended_Main_Code_Unit (Subp_Body) then
return; return;
end if; end if;
...@@ -1556,7 +1556,7 @@ package body Exp_Unst is ...@@ -1556,7 +1556,7 @@ package body Exp_Unst is
-- from level STJR.Lev to level STJE.Lev. The general form of -- from level STJR.Lev to level STJE.Lev. The general form of
-- the rewritten reference for entity X is: -- the rewritten reference for entity X is:
-- Typ'Deref (ARECaF.ARECbU.ARECcU.ARECdU....ARECm.X) -- Typ'Deref (ARECaF.ARECbU.ARECcU.ARECdU....ARECmU.X)
-- where a,b,c,d .. m = -- where a,b,c,d .. m =
-- STJR.Lev - 1, STJR.Lev - 2, .. STJE.Lev -- STJR.Lev - 1, STJR.Lev - 2, .. STJE.Lev
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment