From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,4d062d5c58234698 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit X-Received: by 10.181.13.205 with SMTP id fa13mr5477703wid.3.1356262817191; Sun, 23 Dec 2012 03:40:17 -0800 (PST) Path: i11ni268400wiw.0!nntp.google.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!85.12.40.130.MISMATCH!xlned.com!feeder1.xlned.com!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newspeer1.nac.net!news.mi.ras.ru!goblin-spool!goblin1!goblin.stu.neva.ru!news.glorb.com!news-out.readnews.com!transit3.readnews.com!panix!newsfeed-00.mathworks.com!nntp.TheWorld.com!.POSTED!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: right compilation unit for C as main? Date: Wed, 19 Dec 2012 11:31:46 -0500 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 X-Trace: pcls6.std.com 1355934706 27200 192.74.137.71 (19 Dec 2012 16:31:46 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Wed, 19 Dec 2012 16:31:46 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:Ik0zSabeKNP0NYIB3+u/GYWhbiQ= Content-Type: text/plain; charset=us-ascii Date: 2012-12-19T11:31:46-05:00 List-Id: Simon Wright writes: > Robert A Duff writes: > >> Tasks can also be created during library-package elaboration, >> which is called from adainit. > > This is one of the few ways I've managed to cause elaboration-order > problems with GNAT's default elaboration order algorithm. Yes, that's a problem. One solution is to use pragma Partition_Elaboration_Policy, so library level tasks are not activated until after all the library units have been elaborated. - Bob