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 Feb 24 11:00:05 2007 +0000 (2007-02-24)
changeset 1 eeea35fbf182
permissions -rw-r--r--
Add the full crosstool-NG sources to the new repository of its own.
You might just say: 'Yeah! crosstool-NG's got its own repo!".
Unfortunately, that's because the previous repo got damaged beyond repair and I had no backup.
That means I'm putting backups in place in the afternoon.
That also means we've lost history... :-(
     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  {