comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: Strange warning message
Date: Sat, 02 Dec 2017 08:47:06 +0000
Date: 2017-12-02T08:47:06+00:00	[thread overview]
Message-ID: <lyvahpa54l.fsf@pushface.org> (raw)
In-Reply-To: 67aa971f-9ea3-4a24-88d2-b3b4ec502451@googlegroups.com

Robert Eachus <rieachus@comcast.net> writes:

> For tasks, we have this additional constraint.  You can't leave the
> scope in which a task is declared because the task can still access
> those objects.  So functions, procedures, tasks and even packages can
> need to wait for all the tasks declared locally to be completed (or
> waiting at a terminate alternative).  Again declaring library level
> tasks, if you don't need this complex behavior, eliminates run-time
> code to make it work.

In my experience, when GNAT (with the default static elaboration) has
been unable to find a valid elaboration order, it's almost always been
because of library-level tasks; the binder can't tell whether the task
(which starts executing on completion of its package's elaboration)
actually makes any calls to with'd packages at that point, so assumes
the worst.

  reply	other threads:[~2017-12-02  8:47 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-27  8:40 Strange warning message reinert
2017-11-27  9:00 ` Jacob Sparre Andersen
2017-11-27  9:13   ` reinert
2017-11-27  9:45     ` Jacob Sparre Andersen
2017-11-27 10:43       ` reinert
2017-11-27  9:01 ` gautier_niouzes
2017-11-27  9:09   ` gautier_niouzes
2017-11-27  9:27     ` reinert
2017-11-27 10:42 ` Jeffrey R. Carter
2017-11-27 10:47   ` reinert
2017-11-27 11:52     ` reinert
2017-11-29  0:43 ` Robert Eachus
2017-11-29 10:39   ` reinert
2017-11-29 20:47     ` Randy Brukardt
2017-11-30 14:11       ` reinert
2017-12-01 22:53     ` Robert Eachus
2017-12-02  8:47       ` Simon Wright [this message]
2017-12-02  9:47         ` Niklas Holsti
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox