Re: [Ada] Lock-free implementation of protected objects

2012-07-23 Thread Vincent PUCCI

On 07/23/2012 10:43 AM, Arnaud Charlet wrote:

With the following, bootstrap completed on powerpc-apple-darwin9,
and
make check-ada shows no new fails.
Should I apply it?

Looks good to me, go ahead, although I'm a bit surprised that you got an
error,
can you clarify what error you got?

IIRC, that the flag was undefined.

The compiler should NOT generate an error in such case.

Vincent, can you confirm that the compiler will default to False in case
the value is not defined in system.ads?


The swicth is defaulted to be False in Targparm.
However, as far as I understood in Targparm, the switch must be present 
in all

system.ads packages but I may be wrong.



Re: [Ada] Lock-free implementation of protected objects

2012-07-23 Thread Vincent PUCCI

On 07/23/2012 11:03 AM, Iain Sandoe wrote:

On 23 Jul 2012, at 15:57, Arnaud Charlet wrote:


That sounds wrong and isn't how other flags work.

Vincent, can you please double check exactly what's happening, and in particular
verify that a missing flag in system-.ads will NOT cause an error?

Also, I would remove all the default values to False, since they mainly add
noise (and create inconsistency for system files that do not have this
value set).

FWIW, I checked the build transcript for the failed case:

s-atopri.adb:40:10: "Support_Atomic_Primitives" is undefined (more references 
follow)
make[8]: *** [s-atopri.o] Error 1

cheers
Iain


Just got the same error... investigating