# DP: Description: Make glibc-2.3.5 compile with gcc-4.0 on arm for inline # functions of dl-machine.h. # DP: Related bugs: # DP: Dpatch author: GOTO Masanori # DP: Patch author: Dan Kegel # DP: Upstream status: In CVS / Debian-Specific # DP: Status Details: # DP: Date: 2005-07-16 Fetched from: http://kegel.com/crosstool/crosstool-0.37/patches/glibc-2.3.5/glibc-2.3.4-allow-gcc-4.0-arm.patch --- glibc-2.3.4/sysdeps/arm/dl-machine.h.old Sun Mar 20 17:54:37 2005 +++ glibc-2.3.4/sysdeps/arm/dl-machine.h Sun Mar 20 17:57:32 2005 @@ -359,7 +359,14 @@ # endif /* Deal with an out-of-range PC24 reloc. */ -static Elf32_Addr +#if __GNUC__ >= 4 + auto inline Elf32_Addr +#else + static inline Elf32_Addr +#endif +#if __GNUC__ >= 4 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2) + __attribute ((always_inline)) +#endif fix_bad_pc24 (Elf32_Addr *const reloc_addr, Elf32_Addr value) { static void *fix_page;