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=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,a4db0fc323f0b09e X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!cyclone1.gnilink.net!gnilink.net!nx02.iad01.newshosting.com!newshosting.com!newspeer.monmouth.com!newsswitch.lcs.mit.edu!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: Barrier re-evaluation issue with GNAT 4.3.2 Date: Mon, 28 Sep 2009 17:13:24 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls6.std.com 1254172405 602 192.74.137.71 (28 Sep 2009 21:13:24 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Mon, 28 Sep 2009 21:13:24 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:sLc5nTm/0lILT7natyA7RQiCG+A= Xref: g2news2.google.com comp.lang.ada:8523 Date: 2009-09-28T17:13:24-04:00 List-Id: "Jeffrey R. Carter" writes: > An entry call is always potentially blocking, regardless of its barrier; > see ARM 9.5.1. Technically, this code contains a bounded error. Since > the potentially blocking operation was detected, your program should > raise Program_Error; GNAT pretends that it hasn't detected that the > operation is potentially blocking and lets you get away with only a > warning. Other compilers (and even other versions of GNAT) may actually > raise Program_Error. Pragma Detect_Blocking will cause GNAT to raise Program_Error. If you want to write portable code, you should use this pragma. - Bob