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.15-658-g3ce2865


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  3ce2865f93d42f4721d58088dd6ab1dac06ea85b (commit)
      from  ae186e9a85c5fcb9fae262687819c55d1ff03727 (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=3ce2865f93d42f4721d58088dd6ab1dac06ea85b

commit 3ce2865f93d42f4721d58088dd6ab1dac06ea85b
Author: Chung-Lin Tang <cltang@codesourcery.com>
Date:   Tue Apr 24 21:32:11 2012 +0800

    SH: Replace <endian.h> usage with pre-processor macros.
    
    Follow-up to f8887d0a5feda97244613135822b0439addc2b1f.

diff --git a/ChangeLog b/ChangeLog
index 25c1da2..0f558fe 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
+
+	* sysdeps/sh/memcpy.S: Remove include of endian.h, change
+	preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
+	* sysdeps/sh/strlen.S: Likewise.
+
 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
 
 	* sysdeps/unix/fork.S: Remove file.
diff --git a/sysdeps/sh/memcpy.S b/sysdeps/sh/memcpy.S
index 0b9ed6b..b4d90bb 100644
--- a/sysdeps/sh/memcpy.S
+++ b/sysdeps/sh/memcpy.S
@@ -1,4 +1,4 @@
-/* Copyright (C) 1999, 2000, 2002, 2003 Free Software Foundation, Inc.
+/* Copyright (C) 1999-2012 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Kazumoto Kojima <kkojima@rr.iij4u.or.jp>
    Optimized by Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
@@ -18,7 +18,6 @@
    <http://www.gnu.org/licenses/>.  */
 
 #include <sysdep.h>
-#include <endian.h>
 
 /* void *memcpy(void *dst, const void *src, size_t n);
     No overlap between the memory of DST and of SRC are assumed.  */
@@ -49,7 +48,7 @@ L_wordalign:
 
 	mov.w	@r0+,r1		/* Copy one word.  */
 	add	#-2,r6
-#if __BYTE_ORDER == __BIG_ENDIAN
+#ifdef __BIG_ENDIAN__
 	add	#1,r4
 	mov.b	r1,@r4
 	shlr8	r1
@@ -98,7 +97,7 @@ L_copydest1_or_3_loop:
 	mov.l	@r5+,r0		/* Read first longword.  */
 	dt	r7
 	mov.l	@r5+,r1		/* Read second longword.  */
-#if __BYTE_ORDER == __BIG_ENDIAN
+#ifdef __BIG_ENDIAN__
 	/* Write first longword as byte, word, byte.  */
 	mov.b	r0,@(4,r4)
 	shlr8	r0
@@ -140,7 +139,7 @@ L_copydest2_loop:
 	mov.l	@r5+,r0
 	dt	r7
 	mov.l	@r5+,r1
-#if __BYTE_ORDER == __BIG_ENDIAN
+#ifdef __BIG_ENDIAN__
 	mov.w	r0,@(2,r4)
 	shlr16	r0
 	mov.w	r0,@r4
diff --git a/sysdeps/sh/strlen.S b/sysdeps/sh/strlen.S
index 93f7dd8..65aec76 100644
--- a/sysdeps/sh/strlen.S
+++ b/sysdeps/sh/strlen.S
@@ -1,4 +1,4 @@
-/* Copyright (C) 1999, 2000, 2003 Free Software Foundation, Inc.
+/* Copyright (C) 1999-2012 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Kazumoto Kojima <kkojima@rr.iij4u.or.jp>
 
@@ -17,7 +17,6 @@
    <http://www.gnu.org/licenses/>.  */
 
 #include <sysdep.h>
-#include <endian.h>
 
 /* size_t strlen (const char *s)  */
 
@@ -58,7 +57,7 @@ ENTRY(strlen)
 	add	#4, r2
 
 	add	#-4, r2
-#if __BYTE_ORDER == __BIG_ENDIAN
+#ifdef __BIG_ENDIAN__
 	swap.b	r1, r1
 	swap.w	r1, r1
 	swap.b	r1, r1

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

Summary of changes:
 ChangeLog           |    6 ++++++
 sysdeps/sh/memcpy.S |    9 ++++-----
 sysdeps/sh/strlen.S |    5 ++---
 3 files changed, 12 insertions(+), 8 deletions(-)


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]