tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: __sync builtins on macppc



On Fri, Jul 12, 2019 at 08:30:22 +1000, matthew green wrote:

> basically, these are not available because the hardware does
> not support 64 bit atomic operations.
> 
> apr should be fixed to not try to use them where they don't
> exist...  solutions depend upon the application at hand, as
> not all methods work across all requirements.  eg, hash-based
> locks don't work across virtual address spaces without setup
> to make sure the same locks are mapped in all.

Just for the record...

I ended up recompiling devel/apr with ap_cv_atomic_builtins=no and
fixing include/arch/unix/apr_arch_atomic.h to test for __powerpc__
(along with __ppc__ and __PPC__ it tested for).

-uwe


Home | Main Index | Thread Index | Old Index