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, WEIRD_PORT autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,e720bb94c5e4e582 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!s31g2000yqs.googlegroups.com!not-for-mail From: xorque Newsgroups: comp.lang.ada Subject: Re: GCC 4.4.0 Postcondition oddity. Date: Mon, 6 Jul 2009 14:25:20 -0700 (PDT) Organization: http://groups.google.com Message-ID: <9089ca42-07f4-4208-832e-5f4c3bea1851@s31g2000yqs.googlegroups.com> References: <3a52a180-2565-4311-bc4d-dc28194a1150@l31g2000yqb.googlegroups.com> <145fd6a9-399d-4651-8d09-edfb1d584e8d@d4g2000yqa.googlegroups.com> <4a51f094$0$31863$9b4e6d93@newsspool3.arcor-online.net> <7d651e73-09f9-49ed-a665-b5943e2c41e8@h2g2000yqg.googlegroups.com> <87tz1pohqs.fsf@willow.rfc1149.net> NNTP-Posting-Host: 62.249.247.223 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1246915541 1016 127.0.0.1 (6 Jul 2009 21:25:41 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 6 Jul 2009 21:25:41 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: s31g2000yqs.googlegroups.com; posting-host=62.249.247.223; posting-account=D9GNUgoAAAAmg7CCIh9FhKHNAJmHypsp User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.11) Gecko/2009061212 Iceweasel/3.0.9 (Debian-3.0.9-1),gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:6869 Date: 2009-07-06T14:25:20-07:00 List-Id: Samuel Tardieu wrote: > >>>>> "xorque" == xorque writes: > > xorque> Looks like I'll be filing a bug report... > > Out of curiosity, what does the output of "gcc -gnatadg" look like? > > Here, it is: (with a recent FSF GCC) > > % gcc -c -gnatadg p.adb > with system.system__assertions; > > package body p is > > procedure p__x (a : out natural) is > > procedure p__x___postconditions is > begin > if not (a >= 10) then > $system__assertions__raise_assert_failure ( > "Postcondition failed at p.ads:4"); > end if; > return; > end p__x___postconditions; > begin > a := 20; > p__x___postconditions; > return; > end p__x; > begin > null; > end p; On my system: a := 20; p__x___postconditions; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ return; Is missing. I'll try compiling trunk! Thanks.