patches/glibc/2.2.5/glibc-2.2.5-allow-gcc-4.0-powerpc.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sat Jul 28 21:34:41 2007 +0000 (2007-07-28)
changeset 301 2be7232a73ac
permissions -rw-r--r--
Bump version to 0.2.2.
     1 In file included from dynamic-link.h:21,
     2                  from dl-reloc.c:153:
     3 ../sysdeps/powerpc/dl-machine.h: In function '_dl_relocate_object':
     4 ../sysdeps/powerpc/dl-machine.h:399: error: invalid storage class for function 'elf_machine_rela_relative'
     5 make[2]: *** [/home/dank/queue/jobdir.dual2/crosstool-dev/build/powerpc-750-linux-gnu/gcc-4.0-20050305-glibc-2.2.5/build-glibc/elf/dl-reloc.o] Error 1
     6 --- glibc-2.2.5/sysdeps/powerpc/dl-machine.h.old	Thu Mar 17 13:28:17 2005
     7 +++ glibc-2.2.5/sysdeps/powerpc/dl-machine.h	Thu Mar 17 13:29:03 2005
     8 @@ -393,7 +393,14 @@
     9  			    reloc_addr, finaladdr, rinfo);
    10  }
    11  
    12 -static inline void
    13 +#if __GNUC__ >= 4
    14 +  auto inline void
    15 +#else
    16 +  static inline void
    17 +#endif
    18 +#if __GNUC__ >= 4 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)
    19 +  __attribute ((always_inline))
    20 +#endif
    21  elf_machine_rela_relative (Elf32_Addr l_addr, const Elf32_Rela *reloc,
    22  			   Elf32_Addr *const reloc_addr)
    23  {