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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!mx05.eternal-september.org!feeder.eternal-september.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Bill Findlay Newsgroups: comp.lang.ada Subject: Re: Elaboration order handling (Was: Bug in 'gnatmake') Date: Wed, 19 Jun 2013 14:07:59 +0100 Message-ID: References: <7f33982d-3bcf-452e-a3b3-3a0a28505ff1@x20g2000vbe.googlegroups.com> <87r4g0g9c0.fsf@adaheads.sparre-andersen.dk> <87ip1bg4z2.fsf_-_@adaheads.sparre-andersen.dk> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Trace: individual.net Pc8ygf2pJMj5yr6lYxmIggfO3KIi0L29EJn83FkG0smaRqHSr1 Cancel-Lock: sha1:lXZjtThWkhg5o7kXu9LV9ZwG/dE= User-Agent: Microsoft-Entourage/12.33.0.120411 Thread-Topic: Elaboration order handling (Was: Bug in 'gnatmake') Thread-Index: Ac5s7gV2bAxwWLwktECK1mnpSbCxCg== Xref: news.eternal-september.org comp.lang.ada:15829 Date: 2013-06-19T14:07:59+01:00 List-Id: On 18/06/2013 18:09, in article wcczjun4a7y.fsf@shell01.TheWorld.com, "Robert A Duff" wrote: > If you want your code to be portable, you need to insert pragma > Elaborate_All all over the place. It's nearly impossible to get that > right by hand, so you should use the GNAT switch that makes it tell you > where Elaborate_All should go. Don't use -gnatE in this case. Many thanks for that tip, Robert. I did not know about -gnatwl, and had dozens of Elaborate_All pragmas, which I now know to have been mostly unnecessary. -- Bill Findlay with blueyonder.co.uk; use surname & forename;