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