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: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!mx05.eternal-september.org!feeder.eternal-september.org!nuzba.szn.dk!news.jacob-sparre.dk!loke.jacob-sparre.dk!pnx.dk!.POSTED!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Simple loop with a strange output Date: Thu, 23 May 2013 16:34:47 -0500 Organization: Jacob Sparre Andersen Research & Innovation Message-ID: References: <7cd707ce-ebc5-4df1-9ec3-4f99ce87a07d@googlegroups.com><96af9cd4-3368-4866-a38e-2514a0a7a54d@googlegroups.com><9d131b52-1fe8-4fcb-bb99-c034cefadeee@googlegroups.com><17520a7b-5d05-43d1-bee6-90127a1365f0@googlegroups.com> NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: loke.gir.dk 1369344889 14180 69.95.181.76 (23 May 2013 21:34:49 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Thu, 23 May 2013 21:34:49 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Xref: news.eternal-september.org comp.lang.ada:15643 Date: 2013-05-23T16:34:47-05:00 List-Id: "Simon Wright" wrote in message news:lyppwh8x9y.fsf@pushface.org... > Luca Cappelletti writes: > >> do you know why the overflow checking is off by default? > > The explanation is here: > http://gcc.gnu.org/onlinedocs/gnat_ugn_unw/Controlling-Run_002dTime-Checks.html#index-g_t_0040option_007b_002dgnato_007d-_0028_0040command_007bgcc_007d_0029-595 > > or here, if that link got broken: http://goo.gl/ffIjp That's the official line, but I think if you asked most people at AdaCore today, they'd tell you that it was a mistake. But mistakes like this one aren't really fixable, because of all of the existing code that would be at risk of breaking if they changed the default. (That code would technically be wrong, but I doubt that would be much consolation if it meant that the train refused to stop.) This sort of thing is going to happen in any compiler that's been around a while. There are certainly defaults in Janus/Ada that I wouldn't make the default today, but breaking existing projects isn't really an option, so such changes hardly ever are made. Randy.