Commit 6b3035ab by Bob Duff Committed by Pierre-Marie de Rodat

[Ada] Ignore pragma Elaborate_Body in spec of a SAL_Interface package

2018-05-22  Bob Duff  <duff@adacore.com>

gcc/ada/

	* binde.adb: (Choose): Ignore a pragma Elaborate_Body that appears in
	the spec of a SAL_Interface package.

From-SVN: r260517
parent 85c73d63
2018-05-22 Bob Duff <duff@adacore.com>
* binde.adb: (Choose): Ignore a pragma Elaborate_Body that appears in
the spec of a SAL_Interface package.
2018-05-22 Ed Schonberg <schonberg@adacore.com>
* freeze.adb (Freeze_Entity): When analyzing delayed aspects of an
......
......@@ -1123,6 +1123,14 @@ package body Binde is
and then Units.Table (Chosen).RCI
then
null;
-- If this unit is an interface to a stand-alone library, then we
-- don't want to elaborate the body -- that will happen as part of
-- the library.
elsif Units.Table (Chosen).SAL_Interface then
null;
else
Choose
(Elab_Order => Elab_Order,
......
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