comp.lang.ada
 help / color / mirror / Atom feed
From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: Barrier re-evaluation issue with GNAT 4.3.2
Date: Sat, 10 Oct 2009 00:41:38 -0500
Date: 2009-10-10T00:41:38-05:00	[thread overview]
Message-ID: <hap6tm$cmk$1@munin.nbi.dk> (raw)
In-Reply-To: h9rco8$u58$1@news.tornevall.net

"Jeffrey R. Carter" <spam.jrcarter.not@spam.acm.org> wrote in message 
news:h9rco8$u58$1@news.tornevall.net...
> Robert A Duff wrote:
>>
>> Pragma Detect_Blocking will cause GNAT to raise Program_Error.
>> If you want to write portable code, you should use this
>> pragma.
>
> I thought there would be a way to make GNAT be an Ada compiler, but a 
> quick look at the secret documentation didn't find it.

GNAT does some weird things, but this isn't one of them. Pragma 
Detect_Blocking is standard Ada 2005 (added for the Ravenscar profile). It 
should be the default, but it isn't because various real-time people who 
ought to know better don't want to pay the miniscule cost of the check. [I 
think the check should be the default with the possibility of check 
suppression -- which hardly ever would be used. But some people think 
possible deadlocks are a better outcome. Bah!] Because of that, almost all 
Ada compilers will behave as GNAT does in this case. If you want portable 
Ada code (at runtime), you need to include the pragma -- for *all* 
compilers, not just GNAT. (If you are doing pure Ada 95, you are out of 
luck, unfortunately.)

                                              Randy.





  reply	other threads:[~2009-10-10  5:41 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-24 17:02 Barrier re-evaluation issue with GNAT 4.3.2 Reto Buerki
2009-09-24 17:47 ` Dmitry A. Kazakov
2009-09-25  8:50   ` Brad Moore
2009-09-25  9:17     ` Dmitry A. Kazakov
2009-09-25  9:57       ` Ludovic Brenta
2009-09-25 10:31         ` Dmitry A. Kazakov
2009-09-25 11:23       ` Jean-Pierre Rosen
2009-09-28 10:41         ` Reto Buerki
2009-09-25 17:06       ` Brad Moore
2009-09-25 18:42         ` Dmitry A. Kazakov
2009-09-25 19:39           ` Brad Moore
2009-09-28 10:18   ` Reto Buerki
2009-09-25 15:56 ` John B. Matthews
2009-09-26 14:23   ` John B. Matthews
2009-09-28 10:28   ` Reto Buerki
2009-09-28 12:39     ` John B. Matthews
2009-09-28 13:25       ` Reto Buerki
2009-09-28 14:05         ` Reto Buerki
2009-09-28 18:38           ` Jeffrey R. Carter
2009-09-28 18:51             ` Dmitry A. Kazakov
2009-09-29  8:37               ` Reto Buerki
2009-09-28 21:13             ` Robert A Duff
2009-09-28 22:28               ` Jeffrey R. Carter
2009-10-10  5:41                 ` Randy Brukardt [this message]
2009-09-29  8:30             ` Reto Buerki
2009-09-29 15:06               ` John B. Matthews
2009-09-30 14:12                 ` Reto Buerki
2009-09-30 15:59                   ` John B. Matthews
2009-10-01 16:12                     ` John B. Matthews
2009-10-01 17:17                       ` Anh Vo
2009-10-02  2:26                         ` John B. Matthews
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox