patches/glibc/2.3.5/glibc-2.3.4-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... :-(
     1 First discussed here:
     2 http://gcc.gnu.org/ml/gcc/2005-01/msg00509.html
     3 
     4 Revision 1.12, Wed Mar 2 20:11:38 2005 UTC by roland
     5 Branch: MAIN
     6 CVS Tags: fedora-glibc-20050303T1335, HEAD
     7 Changes since 1.11: +3 -8 lines
     8 Diff to previous 1.11 (colored)
     9 
    10 2005-02-21  Alan Modra <amodra@bigpond.net.au>
    11 
    12 	* sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Don't
    13 	use __uint128_t.
    14 
    15 http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/sysdeps/unix/sysv/linux/powerpc/sys/procfs.h?cvsroot=glibc
    16 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
    17 
    18 Fixes
    19 
    20 In file included from ../linuxthreads_db/proc_service.h:20,
    21                  from ../linuxthreads_db/thread_dbP.h:7,
    22                  from ../linuxthreads/descr.h:44,
    23                  from ../linuxthreads/internals.h:30,
    24                  from ../linuxthreads/sysdeps/pthread/bits/libc-lock.h:27,
    25                  from ../sysdeps/generic/ldsodefs.h:38,
    26                  from ../sysdeps/unix/sysv/linux/ldsodefs.h:25,
    27                  from <stdin>:2:
    28 ../sysdeps/unix/sysv/linux/powerpc/sys/procfs.h:57: error: syntax error before 'elf_vrreg_t'
    29 ../sysdeps/unix/sysv/linux/powerpc/sys/procfs.h:57: warning: type defaults to 'int' in declaration of 'elf_vrreg_t'
    30 ../sysdeps/unix/sysv/linux/powerpc/sys/procfs.h:57: warning: data definition has no type or storage class
    31 ../sysdeps/unix/sysv/linux/powerpc/sys/procfs.h:58: error: syntax error before 'elf_vrregset_t'
    32 ../sysdeps/unix/sysv/linux/powerpc/sys/procfs.h:58: warning: type defaults to 'int' in declaration of 'elf_vrregset_t'
    33 ../sysdeps/unix/sysv/linux/powerpc/sys/procfs.h:58: warning: data definition has no type or storage class
    34 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'
    35 
    36 
    37 ===================================================================
    38 RCS file: /cvs/glibc/libc/sysdeps/unix/sysv/linux/powerpc/sys/procfs.h,v
    39 retrieving revision 1.11
    40 retrieving revision 1.12
    41 diff -u -r1.11 -r1.12
    42 --- libc/sysdeps/unix/sysv/linux/powerpc/sys/procfs.h	2003/12/17 23:09:34	1.11
    43 +++ libc/sysdeps/unix/sysv/linux/powerpc/sys/procfs.h	2005/03/02 20:11:38	1.12
    44 @@ -46,15 +46,10 @@
    45  typedef double elf_fpreg_t;
    46  typedef elf_fpreg_t elf_fpregset_t[ELF_NFPREG];
    47  
    48 -/* gcc 3.1 and newer support __uint128_t.  */
    49 -#if !__GNUC_PREREQ(3,1)
    50 -typedef struct {
    51 -  unsigned long u[4];
    52 -} __attribute((aligned(16))) __uint128_t;
    53 -#endif
    54 -
    55  /* Altivec registers */
    56 -typedef __uint128_t elf_vrreg_t;
    57 +typedef struct {
    58 +  unsigned int u[4];
    59 +} __attribute__ ((aligned (16))) elf_vrreg_t;
    60  typedef elf_vrreg_t elf_vrregset_t[ELF_NVRREG];
    61  #endif
    62