patches/glibc/2.3.6/maybe/100-allow-gcc-4.0-powerpc32.patch
changeset 2267 7af68e6083aa
parent 2266 a64ae33ea8ae
child 2268 1300e1714c13
     1.1 --- a/patches/glibc/2.3.6/maybe/100-allow-gcc-4.0-powerpc32.patch	Mon Jan 03 22:02:06 2011 +0100
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,45 +0,0 @@
     1.4 -Fixes
     1.5 -
     1.6 -../sysdeps/powerpc/powerpc32/dl-machine.h: In function '_dl_relocate_object':
     1.7 -../sysdeps/powerpc/powerpc32/dl-machine.h:461: error: invalid storage class for function 'elf_machine_rela_relative'
     1.8 -../sysdeps/powerpc/powerpc32/dl-machine.h:469: error: invalid storage class for function 'elf_machine_lazy_rel'
     1.9 -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
    1.10 -
    1.11 ---- glibc-2.3.6.orig/sysdeps/powerpc/powerpc32/dl-machine.h	Wed Jul 30 23:33:52 2003
    1.12 -+++ glibc-2.3.6/sysdeps/powerpc/powerpc32/dl-machine.h		Thu Mar 17 13:19:16 2005
    1.13 -@@ -455,8 +455,14 @@
    1.14 -     }
    1.15 - }
    1.16 - 
    1.17 --auto inline void
    1.18 --__attribute__ ((always_inline))
    1.19 -+#if __GNUC__ >= 4
    1.20 -+  auto inline void
    1.21 -+#else
    1.22 -+  static inline void
    1.23 -+#endif
    1.24 -+#if __GNUC__ >= 4 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)
    1.25 -+  __attribute ((always_inline))
    1.26 -+#endif
    1.27 - elf_machine_rela_relative (Elf32_Addr l_addr, const Elf32_Rela *reloc,
    1.28 - 			   void *const reloc_addr_arg)
    1.29 - {
    1.30 -@@ -464,8 +470,14 @@
    1.31 -   *reloc_addr = l_addr + reloc->r_addend;
    1.32 - }
    1.33 - 
    1.34 --auto inline void
    1.35 --__attribute__ ((always_inline))
    1.36 -+#if __GNUC__ >= 4
    1.37 -+  auto inline void
    1.38 -+#else
    1.39 -+  static inline void
    1.40 -+#endif
    1.41 -+#if __GNUC__ >= 4 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)
    1.42 -+  __attribute ((always_inline))
    1.43 -+#endif
    1.44 - elf_machine_lazy_rel (struct link_map *map,
    1.45 - 		      Elf32_Addr l_addr, const Elf32_Rela *reloc)
    1.46 - {
    1.47 -
    1.48 -Signed-off-by: Robert P. J. Day <rpjday@mindspring.com>