patches/glibc/2.3.5/glibc-2.3.5-sh-memset.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sat Feb 24 11:00:05 2007 +0000 (2007-02-24)
changeset 1 eeea35fbf182
permissions -rw-r--r--
Add the full crosstool-NG sources to the new repository of its own.
You might just say: 'Yeah! crosstool-NG's got its own repo!".
Unfortunately, that's because the previous repo got damaged beyond repair and I had no backup.
That means I'm putting backups in place in the afternoon.
That also means we've lost history... :-(
     1 [http://sources.redhat.com/ml/crossgcc/2005-10/msg00035.html]
     2 
     3 Message-ID: <434576E1.6020305@sscd.de>
     4 Date: Thu, 06 Oct 2005 21:11:29 +0200
     5 From: Alexander Sieb <sieb@sscd.de>
     6 To: crossgcc@sourceware.org
     7 Subject: Crosstool sh4-linux-gcc-4.0.2-glibc-2.3.5 patches
     8 
     9 Hi,
    10 
    11 attached you find the files I needed to add to crosstool-0.38
    12 in order to build a sh4-linux gcc-4.0.2-glibc-2.3.5 tool chain.
    13 
    14 Files attached:
    15 
    16 sh4-gcc4.dat:
    17         * gcc4 needs --with-multilib-list=m4,m4-nofpu otherwise a linux
    18         kernel won't build as it uses the -m4-nofpu option.
    19 
    20 gcc-pr21623.patch:
    21         * Kaz Kojima provided a patch [really, a workaround -dank] for http://gcc.gnu.org/PR21623
    22 
    23 glibc-2.3.5-sh-memset.patch:
    24         * A patch for glibc-2.3.5 which corrects memset. From SUGIOKA Toshinobu.
    25         See content for rationale.
    26 
    27 -- snip --
    28 
    29 -- Here's patch 2 of 2, plus URLs showing where it is in CVS --
    30 
    31 [http://sources.redhat.com/ml/glibc-cvs/2005-q3/msg00319.html]
    32 
    33 Date: 24 Jul 2005 22:54:32 -0000
    34 Message-ID: <20050724225432.2111.qmail@sourceware.org>
    35 From: roland at sourceware dot org
    36 To: glibc-cvs at sources dot redhat dot com
    37 Subject: libc/sysdeps/sh memset.S
    38 
    39 CVSROOT:	/cvs/glibc
    40 Module name:	libc
    41 Changes by:	roland@sources.redhat.com	2005-07-24 22:54:32
    42 
    43 Modified files:
    44 	sysdeps/sh     : memset.S 
    45 
    46 Log message:
    47 	2005-07-24  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
    48 	
    49 	* sysdeps/sh/memset.S (memset): Correct 2nd argument handling.
    50 
    51 [http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/sysdeps/sh/memset.S.diff?cvsroot=glibc&r1=1.4&r2=1.5]
    52 
    53 RCS file: /cvs/glibc/libc/sysdeps/sh/memset.S,v
    54 retrieving revision 1.4
    55 retrieving revision 1.5
    56 diff -u -r1.4 -r1.5
    57 --- libc/sysdeps/sh/memset.S	2003/04/29 22:47:18	1.4
    58 +++ libc/sysdeps/sh/memset.S	2005/07/24 22:54:32	1.5
    59 @@ -28,6 +28,7 @@
    60  	bt.s	L_byte_loop_init
    61  	mov	r4,r7
    62  
    63 +	extu.b	r5,r5
    64  	swap.b	r5,r1
    65  	or	r1,r5
    66  	swap.w	r5,r1
    67 
    68 
    69 [See also http://sources.redhat.com/ml/libc-alpha/2005-07/msg00051.html]