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!news3.google.com!feeder2.cambriumusenet.nl!feed.tweaknews.nl!195.96.0.7.MISMATCH!newsfeed.utanet.at!newsfeed.straub-nv.de!feeder.eternal-september.org!eternal-september.org!not-for-mail From: Reto Buerki Newsgroups: comp.lang.ada Subject: Re: Barrier re-evaluation issue with GNAT 4.3.2 Date: Tue, 29 Sep 2009 10:30:44 +0200 Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: news.eternal-september.org U2FsdGVkX18HgYzAejYY69BR3D4TKs6lKsNreMA5dl+Nms2AE+YBV1jTbZK7KtDdGFh+amU8vYf0x7DIr5zXJV3wUW5i8UQlLQJbvwWDNU+CkemZjqq+vimBNj97j9T/XT0IF0dToZU= X-Complaints-To: abuse@eternal-september.org NNTP-Posting-Date: Tue, 29 Sep 2009 08:30:31 +0000 (UTC) In-Reply-To: X-Auth-Sender: U2FsdGVkX1/ijimC1BVwOdOYbqmn3fXZxLTcKRyRr+0= Cancel-Lock: sha1:4jVW8g9K4mDSrgeSL9nEA5C7Isc= User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090706) Xref: g2news2.google.com comp.lang.ada:8528 Date: 2009-09-29T10:30:44+02:00 List-Id: Jeffrey R. Carter wrote: > Reto Buerki wrote: >> >> Update: we just noticed that the warning actually *does* show up but we >> missed it in the previous build. >> >> I also think the warning is irrelevant. It seems that the compiler is >> not smart enough to figure out that the Signal() entry is always open. > > 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. Thanks for the clarification and the pointer to the ARM. This basically means that our workaround is not legal Ada code ...