patches/glibc/2.3.6/maybe/glibc-2.3.6-allow-gcc-4.0-powerpc32.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue Jun 24 16:24:09 2008 +0000 (2008-06-24)
changeset 611 eac4dc8da8a9
permissions -rw-r--r--
New patches from Ioannis E. VENETIS to allow building more up-to-date Alpha x-compilers.
Some patches are still missing, though.
See: http://sourceware.org/ml/libc-help/2008-06/msg00061.html

/trunk/patches/glibc/2.5.1/270-glibc-alpha-cfi.patch | 25 25 0 0 ++++++++++
/trunk/patches/glibc/2.5.1/280-glibc-alpha-sigsuspend.patch | 24 24 0 0 ++++++++++
/trunk/patches/glibc/2.5/270-glibc-alpha-cfi.patch | 25 25 0 0 ++++++++++
/trunk/patches/glibc/2.5/280-glibc-alpha-sigsuspend.patch | 24 24 0 0 ++++++++++
/trunk/patches/glibc/linuxthreads-2.3.6/270-glibc-linuxthreads-alpha-cfi.patch | 25 25 0 0 ++++++++++
/trunk/patches/gcc/4.2.0/940-gcc-alpha-signal_h.patch | 17 17 0 0 +++++++
/trunk/patches/gcc/4.2.1/940-gcc-alpha-signal_h.patch | 17 17 0 0 +++++++
/trunk/patches/gcc/4.3.0/940-gcc-alpha-signal_h.patch | 17 17 0 0 +++++++
/trunk/patches/gcc/4.2.2/940-gcc-alpha-signal_h.patch | 17 17 0 0 +++++++
/trunk/patches/gcc/4.3.1/940-gcc-alpha-signal_h.patch | 17 17 0 0 +++++++
/trunk/patches/gcc/4.2.3/940-gcc-alpha-signal_h.patch | 17 17 0 0 +++++++
11 files changed, 225 insertions(+)
     1 Fixes
     2 
     3 ../sysdeps/powerpc/powerpc32/dl-machine.h: In function '_dl_relocate_object':
     4 ../sysdeps/powerpc/powerpc32/dl-machine.h:461: error: invalid storage class for function 'elf_machine_rela_relative'
     5 ../sysdeps/powerpc/powerpc32/dl-machine.h:469: error: invalid storage class for function 'elf_machine_lazy_rel'
     6 make[2]: *** [/home/dank/queue/jobdir.dual2/crosstool-dev/build/powerpc-750-linux-gnu/gcc-4.0-20050305-glibc-2.3-20050307/build-glibc/elf/dl-reloc.o] Error 1
     7 
     8 --- glibc-2.3.6.orig/sysdeps/powerpc/powerpc32/dl-machine.h	Wed Jul 30 23:33:52 2003
     9 +++ glibc-2.3.6/sysdeps/powerpc/powerpc32/dl-machine.h		Thu Mar 17 13:19:16 2005
    10 @@ -455,8 +455,14 @@
    11      }
    12  }
    13  
    14 -auto inline void
    15 -__attribute__ ((always_inline))
    16 +#if __GNUC__ >= 4
    17 +  auto inline void
    18 +#else
    19 +  static inline void
    20 +#endif
    21 +#if __GNUC__ >= 4 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)
    22 +  __attribute ((always_inline))
    23 +#endif
    24  elf_machine_rela_relative (Elf32_Addr l_addr, const Elf32_Rela *reloc,
    25  			   void *const reloc_addr_arg)
    26  {
    27 @@ -464,8 +470,14 @@
    28    *reloc_addr = l_addr + reloc->r_addend;
    29  }
    30  
    31 -auto inline void
    32 -__attribute__ ((always_inline))
    33 +#if __GNUC__ >= 4
    34 +  auto inline void
    35 +#else
    36 +  static inline void
    37 +#endif
    38 +#if __GNUC__ >= 4 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)
    39 +  __attribute ((always_inline))
    40 +#endif
    41  elf_machine_lazy_rel (struct link_map *map,
    42  		      Elf32_Addr l_addr, const Elf32_Rela *reloc)
    43  {
    44 
    45 Signed-off-by: Robert P. J. Day <rpjday@mindspring.com>