Annotation of /trunk/glibc/patches/glibc-2.3.5-gcc4_fix_procfs-1.patch
Parent Directory | Revision Log
Revision 144 -
(hide annotations)
(download)
Tue May 8 20:06:05 2007 UTC (17 years, 4 months ago) by niro
File size: 1046 byte(s)
Tue May 8 20:06:05 2007 UTC (17 years, 4 months ago) by niro
File size: 1046 byte(s)
-import
1 | niro | 144 | Submitted By: Jeremy Huntwork (jhuntwork at linuxfromscratch dot org) |
2 | Date: 2005-09-18 | ||
3 | Initial Package Version: 2.3.5 | ||
4 | Origin: lists.debian.org | ||
5 | Upstream Status: Applied | ||
6 | Description: Fixes compiling of glibc-2.3.5 with gcc-4 on powerpc machines. | ||
7 | |||
8 | diff -Naur glibc-2.3.5.orig/sysdeps/unix/sysv/linux/powerpc/sys/procfs.h glibc-2.3.5/sysdeps/unix/sysv/linux/powerpc/sys/procfs.h | ||
9 | --- glibc-2.3.5.orig/sysdeps/unix/sysv/linux/powerpc/sys/procfs.h 2003-12-17 18:09:34.000000000 -0500 | ||
10 | +++ glibc-2.3.5/sysdeps/unix/sysv/linux/powerpc/sys/procfs.h 2005-09-18 09:13:01.458306384 -0400 | ||
11 | @@ -46,15 +46,10 @@ | ||
12 | typedef double elf_fpreg_t; | ||
13 | typedef elf_fpreg_t elf_fpregset_t[ELF_NFPREG]; | ||
14 | |||
15 | -/* gcc 3.1 and newer support __uint128_t. */ | ||
16 | -#if !__GNUC_PREREQ(3,1) | ||
17 | -typedef struct { | ||
18 | - unsigned long u[4]; | ||
19 | -} __attribute((aligned(16))) __uint128_t; | ||
20 | -#endif | ||
21 | - | ||
22 | /* Altivec registers */ | ||
23 | -typedef __uint128_t elf_vrreg_t; | ||
24 | +typedef struct { | ||
25 | + unsigned int u[4]; | ||
26 | +} __attribute__ ((aligned (16))) elf_vrreg_t; | ||
27 | typedef elf_vrreg_t elf_vrregset_t[ELF_NVRREG]; | ||
28 | #endif | ||
29 | |||
30 |