gcc8.patch 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. Index: gcc/config/i386/sol2.h
  2. --- gcc/config/i386/sol2.h.orig 2016-03-23 11:55:37.000000000 +0100
  3. +++ gcc/config/i386/sol2.h 2016-04-28 08:42:07.151520146 +0200
  4. @@ -134,6 +134,9 @@
  5. } while (0)
  6. #endif
  7. +#undef DEFAULT_PCC_STRUCT_RETURN
  8. +#define DEFAULT_PCC_STRUCT_RETURN 1
  9. +
  10. /* The Solaris assembler wants a .local for non-exported aliases. */
  11. #define ASM_OUTPUT_DEF_FROM_DECLS(FILE, DECL, TARGET) \
  12. do { \
  13. Index: gcc/config/sol2.h
  14. --- gcc/config/sol2.h.orig 2016-01-04 15:30:50.000000000 +0100
  15. +++ gcc/config/sol2.h 2016-04-28 08:42:07.151520146 +0200
  16. @@ -332,9 +332,9 @@
  17. "%{h*} %{v:-V} \
  18. %{!shared:%{!static:%{rdynamic: " RDYNAMIC_SPEC "}}} \
  19. %{static:-dn -Bstatic} \
  20. - %{shared:-G -dy %{!mimpure-text:-z text}} " \
  21. + %{shared:-G -dy} " \
  22. LINK_LIBGCC_MAPFILE_SPEC LINK_CLEARCAP_SPEC " \
  23. - %{symbolic:-Bsymbolic -G -dy -z text} \
  24. + %{symbolic:-Bsymbolic -G -dy} \
  25. %(link_arch) \
  26. %{Qy:} %{!Qn:-Qy}"
  27. Index: libcpp/charset.c
  28. --- libcpp/charset.c.orig 2016-02-05 20:39:48.000000000 +0100
  29. +++ libcpp/charset.c 2016-04-28 08:42:07.151520146 +0200
  30. @@ -74,6 +74,7 @@
  31. #define iconv_open(x, y) (errno = EINVAL, (iconv_t)-1)
  32. #define iconv(a,b,c,d,e) (errno = EINVAL, (size_t)-1)
  33. #define iconv_close(x) (void)0
  34. +#undef ICONV_CONST
  35. #define ICONV_CONST
  36. #endif
  37. Index: libcpp/internal.h
  38. --- libcpp/internal.h.orig 2016-04-06 20:35:16.000000000 +0200
  39. +++ libcpp/internal.h 2016-04-28 08:42:07.161441169 +0200
  40. @@ -28,6 +28,7 @@
  41. #if HAVE_ICONV
  42. #include <iconv.h>
  43. #else
  44. +#undef HAVE_ICONV
  45. #define HAVE_ICONV 0
  46. typedef int iconv_t; /* dummy */
  47. #endif