mirror of git://gcc.gnu.org/git/gcc.git
[Ada] Unnesting: ensure Current_Subprogram is always initialized
2018-12-11 Arnaud Charlet <charlet@adacore.com> gcc/ada/ * exp_unst.adb (Unnest_Subprogram): Ensure Current_Subprogram is always initialized. From-SVN: r267009
This commit is contained in:
parent
f2bee23951
commit
2ffa39d247
|
|
@ -1,3 +1,8 @@
|
||||||
|
2018-12-11 Arnaud Charlet <charlet@adacore.com>
|
||||||
|
|
||||||
|
* exp_unst.adb (Unnest_Subprogram): Ensure Current_Subprogram is
|
||||||
|
always initialized.
|
||||||
|
|
||||||
2018-12-11 Eric Botcazou <ebotcazou@adacore.com>
|
2018-12-11 Eric Botcazou <ebotcazou@adacore.com>
|
||||||
|
|
||||||
* gcc-interface/decl.c (gnat_to_gnu_entity): Add
|
* gcc-interface/decl.c (gnat_to_gnu_entity): Add
|
||||||
|
|
|
||||||
|
|
@ -440,7 +440,7 @@ package body Exp_Unst is
|
||||||
Urefs.Init;
|
Urefs.Init;
|
||||||
|
|
||||||
Build_Tables : declare
|
Build_Tables : declare
|
||||||
Current_Subprogram : Entity_Id;
|
Current_Subprogram : Entity_Id := Empty;
|
||||||
-- When we scan a subprogram body, we set Current_Subprogram to the
|
-- When we scan a subprogram body, we set Current_Subprogram to the
|
||||||
-- corresponding entity. This gets recursively saved and restored.
|
-- corresponding entity. This gets recursively saved and restored.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue