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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,3737542e2ed2b8e1 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!y34g2000prb.googlegroups.com!not-for-mail From: sjw Newsgroups: comp.lang.ada Subject: Re: Problem with optimizations Date: Tue, 28 Apr 2009 14:33:28 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <49f73730$0$2850$ba620e4c@news.skynet.be> <49f755e0$0$2850$ba620e4c@news.skynet.be> NNTP-Posting-Host: 82.20.239.89 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1240954408 23882 127.0.0.1 (28 Apr 2009 21:33:28 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 28 Apr 2009 21:33:28 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: y34g2000prb.googlegroups.com; posting-host=82.20.239.89; posting-account=_RXWmAoAAADQS3ojtLFDmTNJCT0N2R4U User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_6; en-us) AppleWebKit/525.27.1 (KHTML, like Gecko) Version/3.2.1 Safari/525.27.1,gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:5601 Date: 2009-04-28T14:33:28-07:00 List-Id: On Apr 28, 8:15=A0pm, Olivier Scalbert wrote: > That is what I was thinking, but with: > > gnatmake -f -O3 -W -gnatp rubikmain > > it detects the bug (and also an other one in the same function) > > Shame on me ! And all this time I've been thinking that -gnatwa (actually we use - gnatwaL) would detect this problem .. oh dear. Also, -Wall doesn't detect the problem, clearly 'all' doesn't mean what I thought it did. Target: i386-apple-darwin9.6.0 gcc version 4.3.3 (GCC)