Commit 4dd2ed14 by Ed Schonberg Committed by Pierre-Marie de Rodat

[Ada] Unnesting: handle 'Address references that are calls

2018-07-16  Ed Schonberg  <schonberg@adacore.com>

gcc/ada/

	* exp_unst.adb (Visit_Node): Handle 'Address references that are
	calls.

From-SVN: r262726
parent fa42563a
2018-07-16 Ed Schonberg <schonberg@adacore.com>
* exp_unst.adb (Visit_Node): Handle 'Address references that are
calls.
2018-07-16 Ed Schonberg <schonberg@adacore.com>
* exp_unst.adb (Visit_Node): Handle the semantic of Storage_Pool field
in relevant nodes: Allocate, Free, and return statements.
......
......@@ -859,7 +859,8 @@ package body Exp_Unst is
end;
end if;
-- A 'Access reference is a (potential) call. Other attributes
-- A 'Access reference is a (potential) call. So is 'Address,
-- in particular on imported subprograms. Other attributes
-- require special handling.
when N_Attribute_Reference =>
......@@ -871,6 +872,7 @@ package body Exp_Unst is
when Attribute_Access
| Attribute_Unchecked_Access
| Attribute_Unrestricted_Access
| Attribute_Address
=>
if Nkind (Prefix (N)) in N_Has_Entity then
Ent := Entity (Prefix (N));
......
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