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=unavailable autolearn_force=no version=3.4.4 Path: backlog3.nntp.dca3.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!ottix-news.ottix.net!newsswitch.lcs.mit.edu!nntp.TheWorld.com!.POSTED!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: Bug or feature? Date: Wed, 14 May 2014 18:35:05 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <50562e0a-3dfa-44c4-9aaa-70cbe304b54b@googlegroups.com> <40c7405d-c4c2-4163-a430-01052b769866@googlegroups.com> <049c868a-e930-4e5d-a96a-611542cd1ce6@googlegroups.com> <224148c3-2a31-4f3e-a3a3-0a588773798b@googlegroups.com> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls7.std.com 1400106904 28395 192.74.137.71 (14 May 2014 22:35:04 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Wed, 14 May 2014 22:35:04 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:+gZvj8T1SzlzW/mJXOQu/U1lKrE= Xref: number.nntp.dca.giganews.com comp.lang.ada:186419 Date: 2014-05-14T18:35:05-04:00 List-Id: "Randy Brukardt" writes: > gnatmake > C457003.adb -eS -gnat12 -O0 -gnatE -gnato -gnatv -gnatws -gnatd7 -bargs - T0 Of those, only "-gnatE", "-gnato", and "-bargs -T0" are needed for standards conformance. And as I said, "-gnato" is no longer, or soon will no longer be needed. The above options are definitely not what the OP should be using. For example, don't use -gnatE unless you are porting a large program to GNAT and it won't work otherwise. > Some of these are about warnings and disabling of optimizations, and of > course -gnat12 sets Ada 2012 mode (which I think is the default these days). Right, Ada 2012 is now the default. > [B-Tests also need -gnatf and -gnatq, but that's not important to most since > they're not worried about broken programs.] > > I use that set of options anytime I'm compiling test programs from GNAT > (including the ones that appear here), because several of them are needed to > get standard behavior. GNAT's default behavior might be "better" in some > ways, but it's confusing because it doesn't necessarily do what you'll find > in an Ada book. Yes, it is confusing. - Bob