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,b49d3a703a4b4db5 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news1.google.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nx02.iad01.newshosting.com!newshosting.com!198.186.194.249.MISMATCH!transit3.readnews.com!news-xxxfer.readnews.com!news-out.readnews.com!transit4.readnews.com!panix!bloom-beacon.mit.edu!newsswitch.lcs.mit.edu!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: compiler settings in AdaGIDE Date: Fri, 23 Jul 2010 14:03:19 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <95bd10c9-8747-4f02-b20b-8d4244465949@5g2000yqz.googlegroups.com> <4c49ad26$0$6880$9b4e6d93@newsspool2.arcor-online.net> <4c49b3ca$0$6891$9b4e6d93@newsspool2.arcor-online.net> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: pcls6.std.com 1279908186 26974 192.74.137.71 (23 Jul 2010 18:03:06 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Fri, 23 Jul 2010 18:03:06 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:ouoPQdrChGlZUw3i+qi5ZSligng= Xref: g2news1.google.com comp.lang.ada:12504 Date: 2010-07-23T14:03:19-04:00 List-Id: sjw writes: > On Jul 23, 4:22�pm, Georg Bauhaus > wrote: >> On 23.07.10 17:16, Robert A Duff wrote: >> >> >> ...Or turn off all checks (-gnatp). �The program is no >> >> standard Ada program then, but since your program is correct... :-) >> >> > It's still a standard Ada program. >> >> Without -gnato? Sure. How could compiler switches affect some property ("standardness") of the text of an Ada program? > -gnato is one of the things you have to do to make GNAT a conforming > Ada compiler. Well, not really. If you don't say -gnato, then GNAT is implicitly assuming "pragma Suppress(Overflow_Check);". That's a standard feature of Ada, and the compiler writer gets to decide how source text is represented. If you don't want that text as part of your program, say "-gnato". Similarly, if you say "-gnatn", GNAT is implicitly including "pragma Suppress(All_Checks);" as part of your program text. I realize this argument is a bit of a cheat. And I think overflow checks should be turned on by default. But I don't think it's a conformance issue, formally speaking -- GNAT conforms with or without -gnatn or -gnato. Without -gnatE (dynamic elaboration checks), on the other hand, GNAT is nonconforming, because it rejects some legal programs, and you can't play the above "source representation" game. I think it's good that it's nonconforming in this case, because the default behavior (static elaboration checks) is better than the standard way, and it doesn't harm portability. - Bob