Commit 0850f23b by Eric Botcazou Committed by Eric Botcazou

trans.c (elaborate_all_entities): Do not elaborate the entities of a package renaming another one.

	* gcc-interface/trans.c (elaborate_all_entities): Do not elaborate the
	entities of a package renaming another one.

From-SVN: r268674
parent 3bdf0b64
2019-02-08 Eric Botcazou <ebotcazou@adacore.com>
* gcc-interface/trans.c (elaborate_all_entities): Do not elaborate the
entities of a package renaming another one.
2019-02-08 Eric Botcazou <ebotcazou@adacore.com>
* gcc-interface/trans.c (Regular_Loop_to_gnu): Replace tests on
individual flag_unswitch_loops and flag_tree_loop_vectorize switches
with test on global optimize switch.
......
......@@ -9425,7 +9425,8 @@ elaborate_all_entities (Node_Id gnat_node)
elaborate_all_entities (gnat_unit);
if (Ekind (gnat_entity) == E_Package)
if (Ekind (gnat_entity) == E_Package
&& No (Renamed_Entity (gnat_entity)))
elaborate_all_entities_for_package (gnat_entity);
else if (Ekind (gnat_entity) == E_Generic_Package)
......
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