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,LOTS_OF_MONEY autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,c1983ae2deb642ab X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-05-25 04:02:56 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: dewar@gnat.com (Robert Dewar) Newsgroups: comp.lang.ada Subject: Re: Ada -vs- GNAT Date: 25 May 2002 04:02:55 -0700 Organization: http://groups.google.com/ Message-ID: <5ee5b646.0205250302.6afa3dcc@posting.google.com> References: NNTP-Posting-Host: 205.232.38.244 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1022324575 15598 127.0.0.1 (25 May 2002 11:02:55 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 25 May 2002 11:02:55 GMT Xref: archiver1.google.com comp.lang.ada:24744 Date: 2002-05-25T11:02:55+00:00 List-Id: "Steve Doiel" wrote in message news:... > pragma Warnings (Off, entitiy) > > could be replaced by > > pragma Unreferenced (entity) > > because the latter is "neater, reads better, and is clearer why it is > there." > > In the GCC context this type of change requires that GCC 3.2 be built with > GCC 3.1 and no earlier version. We have *always* had an absolute rule that any version of GNAT must be built with the previous version. In the GCC FSF context, some have argued for relaxing this requirement, and indeed have tried violating it, sometimes with the result of running into very strange and difficult problems. So I *strongly* advise anyone building GNAT to do so using the previous version, whatever you might read elsewhere. No point in buying problems you don't need. Why do we recommend this? a) because that's the way we test things, why pioneer untested territory b) because we dislike keeping bootstrap path kludges in the sources any longer than necessary. The particular example above is a good one. Pragma Warnings (Off) is a blunt tool which may suppress other relevant warnings (as you probably know GNAT sources require no warnings ever to be generated). The new Unreferenced pragma is extremely useful for keeping the valuable new warning on unreferenced parameters whlie allowing it to be selectively turned off where necessary. I actually am arguing very strongly for 3.2 to require 3.1 in the FSF environment for all sorts of reasons (it is interesting to note that those arguing against it are people who are typically outside the Ada community who are used to being able to compile C with any old compiler :-) Robert Dewar Ada Core Technologies