patches/glibc/2.2.5/glibc-2.2.5-allow-gcc-4.0-powerpc.patch
changeset 62 651912c5477c
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/patches/glibc/2.2.5/glibc-2.2.5-allow-gcc-4.0-powerpc.patch	Sun May 06 21:47:29 2007 +0000
     1.3 @@ -0,0 +1,23 @@
     1.4 +In file included from dynamic-link.h:21,
     1.5 +                 from dl-reloc.c:153:
     1.6 +../sysdeps/powerpc/dl-machine.h: In function '_dl_relocate_object':
     1.7 +../sysdeps/powerpc/dl-machine.h:399: error: invalid storage class for function 'elf_machine_rela_relative'
     1.8 +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
     1.9 +--- glibc-2.2.5/sysdeps/powerpc/dl-machine.h.old	Thu Mar 17 13:28:17 2005
    1.10 ++++ glibc-2.2.5/sysdeps/powerpc/dl-machine.h	Thu Mar 17 13:29:03 2005
    1.11 +@@ -393,7 +393,14 @@
    1.12 + 			    reloc_addr, finaladdr, rinfo);
    1.13 + }
    1.14 + 
    1.15 +-static inline void
    1.16 ++#if __GNUC__ >= 4
    1.17 ++  auto inline void
    1.18 ++#else
    1.19 ++  static inline void
    1.20 ++#endif
    1.21 ++#if __GNUC__ >= 4 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)
    1.22 ++  __attribute ((always_inline))
    1.23 ++#endif
    1.24 + elf_machine_rela_relative (Elf32_Addr l_addr, const Elf32_Rela *reloc,
    1.25 + 			   Elf32_Addr *const reloc_addr)
    1.26 + {