Commit 9d11273c by Eric Botcazou Committed by Eric Botcazou

decl.c (gnat_to_gnu_entity): Do not bother about alias sets in presence of…

decl.c (gnat_to_gnu_entity): Do not bother about alias sets in presence of derivation for subprogram types.

	* gcc-interface/decl.c (gnat_to_gnu_entity): Do not bother about alias
	sets in presence of derivation for subprogram types.

From-SVN: r220511
parent e2d13a4a
2015-02-08 Eric Botcazou <ebotcazou@adacore.com> 2015-02-08 Eric Botcazou <ebotcazou@adacore.com>
* gcc-interface/decl.c (gnat_to_gnu_entity): Do not bother about alias
sets in presence of derivation for subprogram types.
2015-02-08 Eric Botcazou <ebotcazou@adacore.com>
* gcc-interface/utils.c (begin_subprog_body): Assert that the body is * gcc-interface/utils.c (begin_subprog_body): Assert that the body is
present in the same context as the declaration. present in the same context as the declaration.
......
...@@ -5138,7 +5138,9 @@ gnat_to_gnu_entity (Entity_Id gnat_entity, tree gnu_expr, int definition) ...@@ -5138,7 +5138,9 @@ gnat_to_gnu_entity (Entity_Id gnat_entity, tree gnu_expr, int definition)
to conflict with Comp2 and an alias set copy is required. to conflict with Comp2 and an alias set copy is required.
The language rules ensure the parent type is already frozen here. */ The language rules ensure the parent type is already frozen here. */
if (Is_Derived_Type (gnat_entity) && !type_annotate_only) if (kind != E_Subprogram_Type
&& Is_Derived_Type (gnat_entity)
&& !type_annotate_only)
{ {
Entity_Id gnat_parent_type = Underlying_Type (Etype (gnat_entity)); Entity_Id gnat_parent_type = Underlying_Type (Etype (gnat_entity));
/* For constrained packed array subtypes, the implementation type is /* For constrained packed array subtypes, the implementation type is
......
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