patches/glibc/2.3.2/glibc-2.3.3-allow-gcc-4.0-powerpc-procfs.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
(Combined with earlier fix old/glibc-2.3.2-powerpc-procfs.patch
yann@1
     2
from http://sources.redhat.com/ml/libc-alpha/2003-12/msg00101.html)
yann@1
     3
yann@1
     4
This fix discussed here:
yann@1
     5
http://gcc.gnu.org/ml/gcc/2005-01/msg00509.html
yann@1
     6
yann@1
     7
Revision 1.12, Wed Mar 2 20:11:38 2005 UTC by roland
yann@1
     8
Branch: MAIN
yann@1
     9
CVS Tags: fedora-glibc-20050303T1335, HEAD
yann@1
    10
Changes since 1.11: +3 -8 lines
yann@1
    11
Diff to previous 1.11 (colored)
yann@1
    12
yann@1
    13
2005-02-21  Alan Modra <amodra@bigpond.net.au>
yann@1
    14
yann@1
    15
	* sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Don't
yann@1
    16
	use __uint128_t.
yann@1
    17
yann@1
    18
http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/sysdeps/unix/sysv/linux/powerpc/sys/procfs.h?cvsroot=glibc
yann@1
    19
http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/sysdeps/unix/sysv/linux/powerpc/sys/procfs.h.diff?r1=1.11&r2=1.12&cvsroot=glibc
yann@1
    20
yann@1
    21
Fixes
yann@1
    22
yann@1
    23
In file included from ../linuxthreads_db/proc_service.h:20,
yann@1
    24
                 from ../linuxthreads_db/thread_dbP.h:7,
yann@1
    25
                 from ../linuxthreads/descr.h:44,
yann@1
    26
                 from ../linuxthreads/internals.h:30,
yann@1
    27
                 from ../linuxthreads/sysdeps/pthread/bits/libc-lock.h:27,
yann@1
    28
                 from ../sysdeps/generic/ldsodefs.h:38,
yann@1
    29
                 from ../sysdeps/unix/sysv/linux/ldsodefs.h:25,
yann@1
    30
                 from <stdin>:2:
yann@1
    31
../sysdeps/unix/sysv/linux/powerpc/sys/procfs.h:57: error: syntax error before 'elf_vrreg_t'
yann@1
    32
../sysdeps/unix/sysv/linux/powerpc/sys/procfs.h:57: warning: type defaults to 'int' in declaration of 'elf_vrreg_t'
yann@1
    33
../sysdeps/unix/sysv/linux/powerpc/sys/procfs.h:57: warning: data definition has no type or storage class
yann@1
    34
../sysdeps/unix/sysv/linux/powerpc/sys/procfs.h:58: error: syntax error before 'elf_vrregset_t'
yann@1
    35
../sysdeps/unix/sysv/linux/powerpc/sys/procfs.h:58: warning: type defaults to 'int' in declaration of 'elf_vrregset_t'
yann@1
    36
../sysdeps/unix/sysv/linux/powerpc/sys/procfs.h:58: warning: data definition has no type or storage class
yann@1
    37
make[2]: make[2]: Leaving directory `/home/dank/queue/jobdir.fast2/crosstool-dev/build/powerpc-750-linux-gnu/gcc-4.0-20050305-glibc-2.3-20050307/glibc-2.3-20050307/csu'
yann@1
    38
yann@1
    39
Rediffed against glibc-2.3.3
yann@1
    40
yann@1
    41
--- glibc-2.3.3.orig/sysdeps/unix/sysv/linux/powerpc/sys/procfs.h	Sun Jan 12 00:24:23 2003
yann@1
    42
+++ glibc-2.3.3.new/sysdeps/unix/sysv/linux/powerpc/sys/procfs.h	Fri Mar 18 11:20:58 2005
yann@1
    43
@@ -45,18 +45,13 @@
yann@1
    44
 
yann@1
    45
 typedef double elf_fpreg_t;
yann@1
    46
 typedef elf_fpreg_t elf_fpregset_t[ELF_NFPREG];
yann@1
    47
-#endif
yann@1
    48
-
yann@1
    49
-/* gcc 3.1 and newer support __uint128_t.  */
yann@1
    50
-#if !__GNUC_PREREQ(3,1)
yann@1
    51
-typedef struct {
yann@1
    52
-  unsigned long u[4];
yann@1
    53
-} __attribute((aligned(16))) __uint128_t;
yann@1
    54
-#endif
yann@1
    55
 
yann@1
    56
 /* Altivec registers */
yann@1
    57
-typedef __uint128_t elf_vrreg_t;
yann@1
    58
+typedef struct {
yann@1
    59
+  unsigned int u[4];
yann@1
    60
+} __attribute__ ((aligned (16))) elf_vrreg_t;
yann@1
    61
 typedef elf_vrreg_t elf_vrregset_t[ELF_NVRREG];
yann@1
    62
+#endif
yann@1
    63
 
yann@1
    64
 struct elf_siginfo
yann@1
    65
   {