ia64-fix-libgcc.patch 1.0 KB

123456789101112131415161718192021222324252627282930
  1. diff -Nur gcc-4.9.3.orig/libgcc/config/ia64/fde-glibc.c gcc-4.9.3/libgcc/config/ia64/fde-glibc.c
  2. --- gcc-4.9.3.orig/libgcc/config/ia64/fde-glibc.c 2014-01-02 23:25:22.000000000 +0100
  3. +++ gcc-4.9.3/libgcc/config/ia64/fde-glibc.c 2015-12-01 07:06:43.963906167 +0100
  4. @@ -25,6 +25,8 @@
  5. /* Locate the FDE entry for a given address, using glibc ld.so routines
  6. to avoid register/deregister calls at DSO load/unload. */
  7. +#ifndef inhibit_libc
  8. +
  9. #ifndef _GNU_SOURCE
  10. #define _GNU_SOURCE 1
  11. #endif
  12. @@ -159,3 +161,4 @@
  13. return data.ret;
  14. }
  15. +#endif
  16. diff -Nur gcc-4.9.3.orig/libgcc/unwind-generic.h gcc-4.9.3/libgcc/unwind-generic.h
  17. --- gcc-4.9.3.orig/libgcc/unwind-generic.h 2014-01-02 23:25:22.000000000 +0100
  18. +++ gcc-4.9.3/libgcc/unwind-generic.h 2015-12-01 07:00:15.731287428 +0100
  19. @@ -221,7 +221,9 @@
  20. compatible with the standard ABI for IA-64, we inline these. */
  21. #ifdef __ia64__
  22. +#ifndef inhibit_libc
  23. #include <stdlib.h>
  24. +#endif
  25. static inline _Unwind_Ptr
  26. _Unwind_GetDataRelBase (struct _Unwind_Context *_C)