patches/glibc/2.3.3/glibc-2.3.3-allow-gcc-4.0-powerpc-procfs.patch
changeset 1 eeea35fbf182
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/patches/glibc/2.3.3/glibc-2.3.3-allow-gcc-4.0-powerpc-procfs.patch	Sat Feb 24 11:00:05 2007 +0000
     1.3 @@ -0,0 +1,65 @@
     1.4 +(Combined with earlier fix old/glibc-2.3.2-powerpc-procfs.patch
     1.5 +from http://sources.redhat.com/ml/libc-alpha/2003-12/msg00101.html)
     1.6 +
     1.7 +This fix discussed here:
     1.8 +http://gcc.gnu.org/ml/gcc/2005-01/msg00509.html
     1.9 +
    1.10 +Revision 1.12, Wed Mar 2 20:11:38 2005 UTC by roland
    1.11 +Branch: MAIN
    1.12 +CVS Tags: fedora-glibc-20050303T1335, HEAD
    1.13 +Changes since 1.11: +3 -8 lines
    1.14 +Diff to previous 1.11 (colored)
    1.15 +
    1.16 +2005-02-21  Alan Modra <amodra@bigpond.net.au>
    1.17 +
    1.18 +	* sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Don't
    1.19 +	use __uint128_t.
    1.20 +
    1.21 +http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/sysdeps/unix/sysv/linux/powerpc/sys/procfs.h?cvsroot=glibc
    1.22 +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
    1.23 +
    1.24 +Fixes
    1.25 +
    1.26 +In file included from ../linuxthreads_db/proc_service.h:20,
    1.27 +                 from ../linuxthreads_db/thread_dbP.h:7,
    1.28 +                 from ../linuxthreads/descr.h:44,
    1.29 +                 from ../linuxthreads/internals.h:30,
    1.30 +                 from ../linuxthreads/sysdeps/pthread/bits/libc-lock.h:27,
    1.31 +                 from ../sysdeps/generic/ldsodefs.h:38,
    1.32 +                 from ../sysdeps/unix/sysv/linux/ldsodefs.h:25,
    1.33 +                 from <stdin>:2:
    1.34 +../sysdeps/unix/sysv/linux/powerpc/sys/procfs.h:57: error: syntax error before 'elf_vrreg_t'
    1.35 +../sysdeps/unix/sysv/linux/powerpc/sys/procfs.h:57: warning: type defaults to 'int' in declaration of 'elf_vrreg_t'
    1.36 +../sysdeps/unix/sysv/linux/powerpc/sys/procfs.h:57: warning: data definition has no type or storage class
    1.37 +../sysdeps/unix/sysv/linux/powerpc/sys/procfs.h:58: error: syntax error before 'elf_vrregset_t'
    1.38 +../sysdeps/unix/sysv/linux/powerpc/sys/procfs.h:58: warning: type defaults to 'int' in declaration of 'elf_vrregset_t'
    1.39 +../sysdeps/unix/sysv/linux/powerpc/sys/procfs.h:58: warning: data definition has no type or storage class
    1.40 +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'
    1.41 +
    1.42 +Rediffed against glibc-2.3.3
    1.43 +
    1.44 +--- glibc-2.3.3.orig/sysdeps/unix/sysv/linux/powerpc/sys/procfs.h	Sun Jan 12 00:24:23 2003
    1.45 ++++ glibc-2.3.3.new/sysdeps/unix/sysv/linux/powerpc/sys/procfs.h	Fri Mar 18 11:20:58 2005
    1.46 +@@ -45,18 +45,13 @@
    1.47 + 
    1.48 + typedef double elf_fpreg_t;
    1.49 + typedef elf_fpreg_t elf_fpregset_t[ELF_NFPREG];
    1.50 +-#endif
    1.51 +-
    1.52 +-/* gcc 3.1 and newer support __uint128_t.  */
    1.53 +-#if !__GNUC_PREREQ(3,1)
    1.54 +-typedef struct {
    1.55 +-  unsigned long u[4];
    1.56 +-} __attribute((aligned(16))) __uint128_t;
    1.57 +-#endif
    1.58 + 
    1.59 + /* Altivec registers */
    1.60 +-typedef __uint128_t elf_vrreg_t;
    1.61 ++typedef struct {
    1.62 ++  unsigned int u[4];
    1.63 ++} __attribute__ ((aligned (16))) elf_vrreg_t;
    1.64 + typedef elf_vrreg_t elf_vrregset_t[ELF_NVRREG];
    1.65 ++#endif
    1.66 + 
    1.67 + struct elf_siginfo
    1.68 +   {