From c436d67da4a4800b5f9bc1263ac98daeccae6dce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Sun, 29 Sep 2013 21:02:11 +0200 Subject: [PATCH] ARM: Add note about updating libstdc++ The __sync_fetch_and_add_4() helper is deprecated in newer GCC, and should be droped when we update libstdc++. --- src/system/libroot/os/atomic.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/system/libroot/os/atomic.c b/src/system/libroot/os/atomic.c index 24ccb061b5..f8a9cbd89d 100644 --- a/src/system/libroot/os/atomic.c +++ b/src/system/libroot/os/atomic.c @@ -89,7 +89,10 @@ atomic_get64(vint64 *value) #endif /* ATOMIC64_FUNCS_ARE_SYSCALLS */ -/* GCC compatibility: libstdc++ needs this one */ +/* GCC compatibility: libstdc++ needs this one. + * TODO: Update libstdc++ and drop this. + * cf. http://fedoraproject.org/wiki/Architectures/ARM/GCCBuiltInAtomicOperations + */ extern int32_t __sync_fetch_and_add_4(int32_t *value, int32_t addValue) {