This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch master updated. glibc-2.19-821-g57977c4
- From: willnewton at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 17 Jul 2014 10:36:54 -0000
- Subject: GNU C Library master sources branch master updated. glibc-2.19-821-g57977c4
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, master has been updated
via 57977c4bf379c7f0b3dcf8b9a97a76214bfdf677 (commit)
from 32bead5b6d6edc4421a8ca628ce7dc14d435202a (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=57977c4bf379c7f0b3dcf8b9a97a76214bfdf677
commit 57977c4bf379c7f0b3dcf8b9a97a76214bfdf677
Author: Will Newton <will.newton@linaro.org>
Date: Fri Jul 4 16:10:15 2014 +0100
ARM: Fix compiler warnings from atomic.h
__arch_compare_and_exchange_bool_*_int return a boolean so in the
dummy implementations for 8, 16 and 64 bits return zero rather than
oldval. Zero is used rather than TRUE or FALSE to avoid needing to
including any headers for these dummy functions.
ChangeLog:
2014-07-17 Will Newton <will.newton@linaro.org>
* sysdeps/arm/bits/atomic.h
(__arch_compare_and_exchange_bool_8_int): Evaluate to zero.
(__arch_compare_and_exchange_bool_16_int): Likewise.
(__arch_compare_and_exchange_bool_64_int): Likewise.
diff --git a/ChangeLog b/ChangeLog
index 9c9b2c3..3c0b5ae 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2014-07-17 Will Newton <will.newton@linaro.org>
+ * sysdeps/arm/bits/atomic.h
+ (__arch_compare_and_exchange_bool_8_int): Evaluate to zero.
+ (__arch_compare_and_exchange_bool_16_int): Likewise.
+ (__arch_compare_and_exchange_bool_64_int): Likewise.
+
* iconv/loop.c: Move definition of LOOPFCT and gconv_btowc
into an #else block.
diff --git a/sysdeps/arm/bits/atomic.h b/sysdeps/arm/bits/atomic.h
index c2d5be5..88cbe67 100644
--- a/sysdeps/arm/bits/atomic.h
+++ b/sysdeps/arm/bits/atomic.h
@@ -96,10 +96,10 @@ void __arm_link_error (void);
For all "bool" routines, we return FALSE if exchange succesful. */
# define __arch_compare_and_exchange_bool_8_int(mem, newval, oldval, model) \
- ({__arm_link_error (); oldval; })
+ ({__arm_link_error (); 0; })
# define __arch_compare_and_exchange_bool_16_int(mem, newval, oldval, model) \
- ({__arm_link_error (); oldval; })
+ ({__arm_link_error (); 0; })
# define __arch_compare_and_exchange_bool_32_int(mem, newval, oldval, model) \
({ \
@@ -109,7 +109,7 @@ void __arm_link_error (void);
})
# define __arch_compare_and_exchange_bool_64_int(mem, newval, oldval, model) \
- ({__arm_link_error (); oldval; })
+ ({__arm_link_error (); 0; })
# define __arch_compare_and_exchange_val_8_int(mem, newval, oldval, model) \
({__arm_link_error (); oldval; })
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 5 +++++
sysdeps/arm/bits/atomic.h | 6 +++---
2 files changed, 8 insertions(+), 3 deletions(-)
hooks/post-receive
--
GNU C Library master sources