This is the mail archive of the glibc-cvs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GNU C Library master sources branch, master, updated. glibc-2.16-ports-merge-140-g3381e4f


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  3381e4ff2d6903b5e995d1b9c6210ebb6f52630b (commit)
       via  3b7d2b398e49a0661d0a8663c75e2cc7b8e52560 (commit)
      from  bf9b740a119eecf01499b4de0dc8cbd27b7c47bd (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://sources.redhat.com/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=3381e4ff2d6903b5e995d1b9c6210ebb6f52630b

commit 3381e4ff2d6903b5e995d1b9c6210ebb6f52630b
Author: Andreas Schwab <schwab@linux-m68k.org>
Date:   Wed Aug 8 12:00:31 2012 +0200

    m68k/cf: define __signbit/__signbitf as inlines

diff --git a/ports/ChangeLog.m68k b/ports/ChangeLog.m68k
index e4fccd2..5d4a0e8 100644
--- a/ports/ChangeLog.m68k
+++ b/ports/ChangeLog.m68k
@@ -1,5 +1,7 @@
 2012-08-08  Andreas Schwab  <schwab@linux-m68k.org>
 
+	* sysdeps/m68k/coldfire/fpu/bits/mathinline.h: New file.
+
 	* sysdeps/unix/sysv/linux/m68k/coldfire/nptl/bits/atomic.h
 	(atomic_compare_and_exchange_val_acq) [!SHARED]: Add cast to avoid
 	warning.
diff --git a/ports/sysdeps/m68k/coldfire/fpu/bits/mathinline.h b/ports/sysdeps/m68k/coldfire/fpu/bits/mathinline.h
new file mode 100644
index 0000000..928b7d3
--- /dev/null
+++ b/ports/sysdeps/m68k/coldfire/fpu/bits/mathinline.h
@@ -0,0 +1,44 @@
+/* Inline math functions for Coldfire.
+   Copyright (C) 2012 Free Software Foundation, Inc.
+   This file is part of the GNU C Library.
+
+   The GNU C Library is free software; you can redistribute it and/or
+   modify it under the terms of the GNU Lesser General Public
+   License as published by the Free Software Foundation; either
+   version 2.1 of the License, or (at your option) any later version.
+
+   The GNU C Library is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   Lesser General Public License for more details.
+
+   You should have received a copy of the GNU Lesser General Public
+   License along with the GNU C Library.  If not, see
+   <http://www.gnu.org/licenses/>.  */
+
+#ifndef _MATH_H
+# error "Never use <bits/mathinline.h> directly; include <math.h> instead."
+#endif
+
+#ifndef __extern_always_inline
+# define __MATH_INLINE __inline
+#else
+# define __MATH_INLINE __extern_always_inline
+#endif
+
+#if defined __USE_ISOC99 && defined __GNUC__
+
+/* Test for negative number.  Used in the signbit macro.  */
+__MATH_INLINE int
+__NTH (__signbitf (float __x))
+{
+  return __builtin_signbitf (__x);
+}
+
+__MATH_INLINE int
+__NTH (__signbit (double __x))
+{
+  return __builtin_signbit (__x);
+}
+
+#endif

http://sources.redhat.com/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=3b7d2b398e49a0661d0a8663c75e2cc7b8e52560

commit 3b7d2b398e49a0661d0a8663c75e2cc7b8e52560
Author: Andreas Schwab <schwab@linux-m68k.org>
Date:   Wed Aug 8 10:39:05 2012 +0200

    m68k/cf: avoid warning in non-shared atomic_compare_and_exchange_val_acq

diff --git a/ports/ChangeLog.m68k b/ports/ChangeLog.m68k
index cf3d251..e4fccd2 100644
--- a/ports/ChangeLog.m68k
+++ b/ports/ChangeLog.m68k
@@ -1,3 +1,9 @@
+2012-08-08  Andreas Schwab  <schwab@linux-m68k.org>
+
+	* sysdeps/unix/sysv/linux/m68k/coldfire/nptl/bits/atomic.h
+	(atomic_compare_and_exchange_val_acq) [!SHARED]: Add cast to avoid
+	warning.
+
 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
 
 	* sysdeps/unix/sysv/linux/m68k/configure.in (arch_minimum_kernel):
diff --git a/ports/sysdeps/unix/sysv/linux/m68k/coldfire/nptl/bits/atomic.h b/ports/sysdeps/unix/sysv/linux/m68k/coldfire/nptl/bits/atomic.h
index b088a72..23ef447 100644
--- a/ports/sysdeps/unix/sysv/linux/m68k/coldfire/nptl/bits/atomic.h
+++ b/ports/sysdeps/unix/sysv/linux/m68k/coldfire/nptl/bits/atomic.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 2010 Free Software Foundation, Inc.
+/* Copyright (C) 2010-2012 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Maxim Kuvyrkov <maxim@codesourcery.com>, 2010.
 
@@ -42,8 +42,8 @@ typedef uintmax_t uatomic_max_t;
 #ifdef SHARED
 # define atomic_compare_and_exchange_val_acq(mem, newval, oldval)	\
   ({									\
-    /* Use temporary variables to workaround call-clobberness of */	\
-    /* the registers.  */						\
+    /* Use temporary variables to workaround call-clobberness of 	\
+       the registers.  */						\
     __typeof (mem) _mem = mem;						\
     __typeof (oldval) _oldval = oldval;					\
     __typeof (newval) _newval = newval;					\
@@ -65,13 +65,13 @@ typedef uintmax_t uatomic_max_t;
 #else
 # define atomic_compare_and_exchange_val_acq(mem, newval, oldval)	\
   ({									\
-    /* Use temporary variables to workaround call-clobberness of */	\
-    /* the registers.  */						\
+    /* Use temporary variables to workaround call-clobberness of 	\
+       the registers.  */						\
     __typeof (mem) _mem = mem;						\
     __typeof (oldval) _oldval = oldval;					\
     __typeof (newval) _newval = newval;					\
     register __typeof (oldval) _d0 asm ("d0")				\
-      = SYS_ify (atomic_cmpxchg_32);					\
+      = (__typeof (oldval)) SYS_ify (atomic_cmpxchg_32);		\
     register __typeof (mem) _a0 asm ("a0") = _mem;			\
     register __typeof (oldval) _d2 asm ("d2") = _oldval;		\
     register __typeof (newval) _d1 asm ("d1") = _newval;		\

-----------------------------------------------------------------------

Summary of changes:
 ports/ChangeLog.m68k                               |    8 ++++++++
 .../{tile => m68k/coldfire/fpu}/bits/mathinline.h  |    8 ++++----
 .../sysv/linux/m68k/coldfire/nptl/bits/atomic.h    |   12 ++++++------
 3 files changed, 18 insertions(+), 10 deletions(-)
 copy ports/sysdeps/{tile => m68k/coldfire/fpu}/bits/mathinline.h (87%)


hooks/post-receive
-- 
GNU C Library master sources


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]