When GNAT was compiling a ghost unit, the ALI file wrongly suggested that this
unit required elaboration counters, which caused linking errors to non-existing
objects.
gcc/ada/ChangeLog:
* sem_ch10.adb (Analyze_Compilation_Unit): Ignored ghost unit need no
elaboration checks.
-- No checks required if no separate spec
or else Acts_As_Spec (N)
+
+ -- No checked needed for ignored ghost units
+
+ or else Is_Ignored_Ghost_Entity (Spec_Id)
)
then
-- This is a case where we only need the entity for checking to