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: 103376,5473431e91435145 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!feeder.news-service.com!85.214.198.2.MISMATCH!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: gnat GPL 2010 or gcc/ada? Date: Mon, 07 Mar 2011 17:57:18 +0000 Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx03.eternal-september.org; posting-host="dFCm8HWntFqmDIilBLqEJQ"; logging-data="7263"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/HZAVXUdvRjg7qOlziCMB5y3aGGln5iSo=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (darwin) Cancel-Lock: sha1:UNN14tlW5g8e364CpdjnXIKxGAs= sha1:T50hN3o9vyqqYFFEZhlKIHqZw1A= Xref: g2news2.google.com comp.lang.ada:18920 Date: 2011-03-07T17:57:18+00:00 List-Id: Julian Leyh writes: > On 6 Mrz., 05:51, "Nasser M. Abbasi" wrote: >> Another question: I would like to use gcc to build an Ada program, >> only because I know gcc is available everywhere, but if I use gnat GPL >> how do I make sure the same program will build with gcc if >> one of these 2 choices happened to be 'recent' than the other or >> one has more packages than the other? > > You'd have to test your program with all the compilers you want it to > be compilable with, i.e. compile it with both, GNAT-GPL and GCC-GNAT. You'd have to try to be sure; but I've rarely had problems if I stick to straightforward constructs. Right now, going for all the Ada2012 features you can is going to cause you problems (not least because AdaCore have implemented features 'at risk', ie before the standard has been agreed, and GNAT GPL/GCC are very likely to be at different stages.)