Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
On Linux, ARMv5tel does not have all functions available #3
It seems that libatomic_ops provides an optimized implementation for ARMv6 and newer architectures. Unfortunately there are no asm functions for ARMv5, which should fallback automatically to the pthread implementation.
This proposed patch is already available in the Fedora package. This change should provide the pthread implementation when atomic_ops.h is included on ARMv5 and earlier architectures.
Please review and include this in the next release if it make sense. Thanks!
Thank you for pointing us to this patch but IMHO this is a logically incorrect patch.
Looking into arm.h (of master branch), the deference between, roughly speaking, ARMv5 and ARMv6 is in presence of CAS.
Please point me at if I misunderstand something of your post.
03 03 2012, 19:02 Niels de Vos email@example.com:
unfortunately does not seem to be sufficient to define AO_REQUIRE_CAS on ARMv5tel. The Fedora Bug 799153 contains a little test-case that can not be compiled without defining AO_USE_PTHREAD_DEFS.
Do you think this could be a bug in the path when AO_REQUIRE_CAS is defined?
07 03 2012, 12:32 Niels de Vos firstname.lastname@example.org:
What do you mean by "path"?
The test case is:
I tried both current release, current master branch and libatomic_ops-7_2alpha6.
First try without AO_REQUIRE_CAS:
/tmp/cca1N8ZK.o: In function
Any news? (We're close to next libatomic_ops release, so it would be good to fix this issue if you know the proper solution.)
07 03 2012, 14:00 Niels de Vos email@example.com: