patches/glibc/2.3.5/glibc-2.3.5-sh-memset.patch
changeset 1 eeea35fbf182
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/patches/glibc/2.3.5/glibc-2.3.5-sh-memset.patch	Sat Feb 24 11:00:05 2007 +0000
     1.3 @@ -0,0 +1,69 @@
     1.4 +[http://sources.redhat.com/ml/crossgcc/2005-10/msg00035.html]
     1.5 +
     1.6 +Message-ID: <434576E1.6020305@sscd.de>
     1.7 +Date: Thu, 06 Oct 2005 21:11:29 +0200
     1.8 +From: Alexander Sieb <sieb@sscd.de>
     1.9 +To: crossgcc@sourceware.org
    1.10 +Subject: Crosstool sh4-linux-gcc-4.0.2-glibc-2.3.5 patches
    1.11 +
    1.12 +Hi,
    1.13 +
    1.14 +attached you find the files I needed to add to crosstool-0.38
    1.15 +in order to build a sh4-linux gcc-4.0.2-glibc-2.3.5 tool chain.
    1.16 +
    1.17 +Files attached:
    1.18 +
    1.19 +sh4-gcc4.dat:
    1.20 +        * gcc4 needs --with-multilib-list=m4,m4-nofpu otherwise a linux
    1.21 +        kernel won't build as it uses the -m4-nofpu option.
    1.22 +
    1.23 +gcc-pr21623.patch:
    1.24 +        * Kaz Kojima provided a patch [really, a workaround -dank] for http://gcc.gnu.org/PR21623
    1.25 +
    1.26 +glibc-2.3.5-sh-memset.patch:
    1.27 +        * A patch for glibc-2.3.5 which corrects memset. From SUGIOKA Toshinobu.
    1.28 +        See content for rationale.
    1.29 +
    1.30 +-- snip --
    1.31 +
    1.32 +-- Here's patch 2 of 2, plus URLs showing where it is in CVS --
    1.33 +
    1.34 +[http://sources.redhat.com/ml/glibc-cvs/2005-q3/msg00319.html]
    1.35 +
    1.36 +Date: 24 Jul 2005 22:54:32 -0000
    1.37 +Message-ID: <20050724225432.2111.qmail@sourceware.org>
    1.38 +From: roland at sourceware dot org
    1.39 +To: glibc-cvs at sources dot redhat dot com
    1.40 +Subject: libc/sysdeps/sh memset.S
    1.41 +
    1.42 +CVSROOT:	/cvs/glibc
    1.43 +Module name:	libc
    1.44 +Changes by:	roland@sources.redhat.com	2005-07-24 22:54:32
    1.45 +
    1.46 +Modified files:
    1.47 +	sysdeps/sh     : memset.S 
    1.48 +
    1.49 +Log message:
    1.50 +	2005-07-24  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
    1.51 +	
    1.52 +	* sysdeps/sh/memset.S (memset): Correct 2nd argument handling.
    1.53 +
    1.54 +[http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/sysdeps/sh/memset.S.diff?cvsroot=glibc&r1=1.4&r2=1.5]
    1.55 +
    1.56 +RCS file: /cvs/glibc/libc/sysdeps/sh/memset.S,v
    1.57 +retrieving revision 1.4
    1.58 +retrieving revision 1.5
    1.59 +diff -u -r1.4 -r1.5
    1.60 +--- libc/sysdeps/sh/memset.S	2003/04/29 22:47:18	1.4
    1.61 ++++ libc/sysdeps/sh/memset.S	2005/07/24 22:54:32	1.5
    1.62 +@@ -28,6 +28,7 @@
    1.63 + 	bt.s	L_byte_loop_init
    1.64 + 	mov	r4,r7
    1.65 + 
    1.66 ++	extu.b	r5,r5
    1.67 + 	swap.b	r5,r1
    1.68 + 	or	r1,r5
    1.69 + 	swap.w	r5,r1
    1.70 +
    1.71 +
    1.72 +[See also http://sources.redhat.com/ml/libc-alpha/2005-07/msg00051.html]