V3 PATCH: __cxa_guard_acquire

Richard Henderson rth@redhat.com
Tue Nov 26 00:03:00 GMT 2002


On Mon, Nov 25, 2002 at 08:24:58PM -0800, Mark Mitchell wrote:
> Yes, it really wants a 64-bit type.  It wants 8 bits for a flag, and
> 7 other bytes for use as appropriate on the particular OS; the idea
> is that you might hide a mutex in those other 7 bytes.  You wouldn't
> want to shrink this to 4 bytes on a 32-bit architecture; you want
> 4 bytes that you can use as the mutex.

If you want to be sure of a mutex, you have to do more.
PA-RISC, for instance, requires that it's mutexes be
16 *byte* aligned.


r~



More information about the Gcc-patches mailing list