comp.lang.ada
 help / color / mirror / Atom feed
From: Robert A Duff <bobduff@shell01.TheWorld.com>
Subject: Re: compiler settings in AdaGIDE
Date: Fri, 23 Jul 2010 14:03:19 -0400
Date: 2010-07-23T14:03:19-04:00	[thread overview]
Message-ID: <wccocdydqjc.fsf@shell01.TheWorld.com> (raw)
In-Reply-To: b923d4c8-3c75-4a2e-8147-82e7f544fdd5@w30g2000yqw.googlegroups.com

sjw <simon.j.wright@mac.com> writes:

> On Jul 23, 4:22�pm, Georg Bauhaus <rm.dash-bauh...@futureapps.de>
> 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



  reply	other threads:[~2010-07-23 18:03 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-23  9:52 compiler settings in AdaGIDE Ada novice
2010-07-23 11:56 ` Gautier write-only
2010-07-23 14:23   ` Ada novice
     [not found]   ` <f72678ba-23ce-4c9a-b17e-b33fbd45300d@l14g2000yql.googlegroups.com>
2010-07-23 14:54     ` Georg Bauhaus
2010-07-23 15:16       ` Robert A Duff
2010-07-23 15:22         ` Georg Bauhaus
2010-07-23 16:51           ` sjw
2010-07-23 18:03             ` Robert A Duff [this message]
2010-07-23 18:27               ` Ada novice
2010-07-23 20:33                 ` Simon Wright
2010-07-23 19:31               ` Dmitry A. Kazakov
2010-07-23 21:01                 ` Robert A Duff
2010-07-23 22:32                   ` Peter C. Chapin
2010-07-24  1:48                   ` BrianG
2010-07-23 20:34               ` Simon Wright
2010-07-23 20:52                 ` Robert A Duff
2010-07-24 10:30                   ` Ada novice
2010-07-24 12:03                     ` Robert A Duff
2010-07-24 12:36                       ` Ada novice
2010-07-24 18:21 ` jonathan
2010-07-25 13:29   ` Ada novice
2010-07-25 19:30     ` Jeffrey R. Carter
2010-07-26 14:13       ` Ada novice
2010-07-26 15:48         ` sjw
2010-07-26 17:12           ` Dmitry A. Kazakov
2010-07-26 17:18           ` Ada novice
2010-07-25 22:57     ` jonathan
2010-07-26 14:12       ` Ada novice
2010-07-25 23:40     ` jonathan
2010-07-26  8:02   ` Making measurements (Was: compiler settings in AdaGIDE) Jacob Sparre Andersen
2010-07-26  9:57     ` jonathan
2010-07-26 13:50       ` Making measurements Jacob Sparre Andersen
2010-07-27 15:11   ` compiler settings in AdaGIDE Colin Paul Gloster
2010-08-01 16:39     ` Ada novice
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox