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: g2news1.google.com!news4.google.com!news2.google.com!goblin3!goblin.stu.neva.ru!newsfeed3.funet.fi!newsfeeds.funet.fi!feeder2.news.elisa.fi!fi.sn.net!newsfeed1.tdcnet.fi!news.song.fi!not-for-mail Date: Mon, 7 Mar 2011 22:04:18 +0200 From: Tero Koskinen Newsgroups: comp.lang.ada Subject: Re: gnat GPL 2010 or gcc/ada? Message-Id: <20110307220418.cafedc94.tero.koskinen@iki.fi> References: <4d750674$0$6981$9b4e6d93@newsspool4.arcor-online.net> X-Newsreader: Sylpheed 3.0.3 (GTK+ 2.22.1; x86_64-unknown-openbsd4.9) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Organization: NBL Networks Oy NNTP-Posting-Host: 217.30.184.161 X-Trace: 1299528258 news.nbl.fi 2874 217.30.184.161:38827 X-Complaints-To: abuse@nblnetworks.fi Xref: g2news1.google.com comp.lang.ada:17955 Date: 2011-03-07T22:04:18+02:00 List-Id: On Mon, 07 Mar 2011 17:23:15 +0100 Georg Bauhaus wrote: > On 07.03.11 16:35, Julian Leyh wrote: > > 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. > > Chances are that all Ada compilers will compile > standard Ada programs. This shouldn't be too > limiting for non-graphical, non-networked programs. You apparently haven't tried many Ada compilers. :) I seem to hit more or less constantly into various compiler bugs when I am developing Ahven or other related projects and testing them with four or five different compilers (FSF GNAT, GNAT GPL, Janus/Ada, Irvine ICCAda, ObjectAda) on 3 platforms (Windows, Linux, OpenBSD). For example, two different Ada compilers choked on this (rather largish) change: https://bitbucket.org/tkoskine/ahven-timeout/changeset/91a9f910a64b#chg_src/ahven-framework.adb_newline147 One compiler didn't like "case Results.Get_Status is"[1] and other compiler simply dead-locked when the final program was run. Third compiler accepted code as-is and the end result also behaved as expected. I am trying to say that, in my experience, you shouldn't assume that all Ada compilers will compile standard Ada programs. You need to actually test that. Ahven's commit logs are littered with various "Work-around for XXX" messages. Oh, and if this compiling thing is too easy, try same with all warnings turned on for all compilers. :) -- Tero Koskinen - http://iki.fi/tero.koskinen/ [1] https://bitbucket.org/tkoskine/ahven-timeout/changeset/91a9f910a64b#chg_src/ahven-framework.adb_newline250