This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
Community source repository for glibc add-on ports branch, master, updated. glibc-2.15-149-g8b2b112
- From: jsm28 at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 26 Apr 2012 19:23:20 -0000
- Subject: Community source repository for glibc add-on ports branch, master, updated. glibc-2.15-149-g8b2b112
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 "Community source repository for glibc add-on ports".
The branch, master has been updated
via 8b2b11271ea68567fbc3262691583bea753d44e3 (commit)
from 8dc2363998e2c13c6e36626fc47844ced976ba4e (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-ports.git;a=commitdiff;h=8b2b11271ea68567fbc3262691583bea753d44e3
commit 8b2b11271ea68567fbc3262691583bea753d44e3
Author: Joseph Myers <joseph@codesourcery.com>
Date: Thu Apr 26 19:23:08 2012 +0000
Avoid endian.h include in MIPS string functions.
diff --git a/ChangeLog.mips b/ChangeLog.mips
index 0b4a493..3d3678b 100644
--- a/ChangeLog.mips
+++ b/ChangeLog.mips
@@ -1,5 +1,9 @@
2012-04-26 Joseph Myers <joseph@codesourcery.com>
+ * sysdeps/mips/memcpy.S: Don't include <endian.h>. Test __MIPSEB
+ instead of __BYTE_ORDER.
+ * sysdeps/mips/memset.S: Likewise.
+
* sysdeps/unix/sysv/linux/mips/kernel_rt_sigframe.h (struct
kernel_rt_sigframe): Use siginfo_t instead of struct siginfo.
diff --git a/sysdeps/mips/memcpy.S b/sysdeps/mips/memcpy.S
index ec1b98a..753f67c 100644
--- a/sysdeps/mips/memcpy.S
+++ b/sysdeps/mips/memcpy.S
@@ -1,4 +1,4 @@
-/* Copyright (C) 2002, 2003 Free Software Foundation, Inc.
+/* Copyright (C) 2002-2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Hartvig Ekner <hartvige@mips.com>, 2002.
@@ -17,12 +17,11 @@
<http://www.gnu.org/licenses/>. */
#include <sysdep.h>
-#include <endian.h>
/* void *memcpy(void *s1, const void *s2, size_t n); */
-#if __BYTE_ORDER == __BIG_ENDIAN
+#if __MIPSEB
# define LWHI lwl /* high part is left in big-endian */
# define SWHI swl /* high part is left in big-endian */
# define LWLO lwr /* low part is right in big-endian */
diff --git a/sysdeps/mips/memset.S b/sysdeps/mips/memset.S
index 1df7981..30a0ba4 100644
--- a/sysdeps/mips/memset.S
+++ b/sysdeps/mips/memset.S
@@ -1,4 +1,4 @@
-/* Copyright (C) 2002, 2003 Free Software Foundation, Inc.
+/* Copyright (C) 2002-2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Hartvig Ekner <hartvige@mips.com>, 2002.
@@ -17,12 +17,11 @@
<http://www.gnu.org/licenses/>. */
#include <sysdep.h>
-#include <endian.h>
/* void *memset(void *s, int c, size_t n). */
-#if __BYTE_ORDER == __BIG_ENDIAN
+#if __MIPSEB
# define SWHI swl /* high part is left in big-endian */
#else
# define SWHI swr /* high part is right in little-endian */
-----------------------------------------------------------------------
Summary of changes:
ChangeLog.mips | 4 ++++
sysdeps/mips/memcpy.S | 5 ++---
sysdeps/mips/memset.S | 5 ++---
3 files changed, 8 insertions(+), 6 deletions(-)
hooks/post-receive
--
Community source repository for glibc add-on ports