gcc.patch 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. Index: config.guess
  2. --- config.guess.orig 2006-10-16 05:27:17 +0200
  3. +++ config.guess 2007-05-17 12:16:14 +0200
  4. @@ -192,7 +192,7 @@
  5. release='-gnu'
  6. ;;
  7. *)
  8. - release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
  9. + release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*//'`
  10. ;;
  11. esac
  12. # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
  13. Index: gcc/config/alpha/osf.h
  14. --- gcc/config/alpha/osf.h.orig 2005-06-25 03:22:41 +0200
  15. +++ gcc/config/alpha/osf.h 2007-05-17 12:16:14 +0200
  16. @@ -78,7 +78,7 @@
  17. constructor and call-frame data structures are not accidentally
  18. overridden. */
  19. #define LINK_SPEC \
  20. - "-G 8 %{O*:-O3} %{!O*:-O1} -S %{static:-non_shared} \
  21. + "-oldstyle_liblookup %{!o:-o a.out} -G 8 %{O*:-O3} %{!O*:-O1} -S %{static:-non_shared} \
  22. %{!static:%{shared:-shared -hidden_symbol _GLOBAL_*} \
  23. %{!shared:-call_shared}} %{pg} %{taso} %{rpath*}"
  24. Index: gcc/config/i386/sol2-10.h
  25. --- gcc/config/i386/sol2-10.h.orig 2006-07-21 07:31:33 +0200
  26. +++ gcc/config/i386/sol2-10.h 2007-05-17 12:16:14 +0200
  27. @@ -88,7 +88,7 @@
  28. #define LINK_ARCH64_SPEC LINK_ARCH64_SPEC_BASE
  29. #ifdef TARGET_GNU_LD
  30. -#define TARGET_LD_EMULATION "%{m64:-m elf_x86_64}%{!m64:-m elf_i386} "
  31. +#define TARGET_LD_EMULATION "%{m64:-m elf_x86_64}%{!m64:} "
  32. #else
  33. #define TARGET_LD_EMULATION ""
  34. #endif
  35. Index: gcc/config/i386/sol2.h
  36. --- gcc/config/i386/sol2.h.orig 2005-06-25 03:22:41 +0200
  37. +++ gcc/config/i386/sol2.h 2007-05-17 12:16:14 +0200
  38. @@ -78,6 +78,9 @@
  39. #undef ASM_QUAD
  40. #endif
  41. +#undef DEFAULT_PCC_STRUCT_RETURN
  42. +#define DEFAULT_PCC_STRUCT_RETURN 1
  43. +
  44. /* The Solaris assembler wants a .local for non-exported aliases. */
  45. #define ASM_OUTPUT_DEF_FROM_DECLS(FILE, DECL, TARGET) \
  46. do { \
  47. Index: gcc/config/sol2.h
  48. --- gcc/config/sol2.h.orig 2006-02-07 21:50:37 +0100
  49. +++ gcc/config/sol2.h 2007-05-17 12:16:14 +0200
  50. @@ -143,8 +143,8 @@
  51. "%{h*} %{v:-V} \
  52. %{b} \
  53. %{static:-dn -Bstatic} \
  54. - %{shared:-G -dy %{!mimpure-text:-z text}} \
  55. - %{symbolic:-Bsymbolic -G -dy -z text} \
  56. + %{shared:-G -dy} \
  57. + %{symbolic:-Bsymbolic -G -dy} \
  58. %(link_arch) \
  59. %{Qy:} %{!Qn:-Qy}"
  60. Index: gcc/system.h
  61. --- gcc/system.h.orig 2006-03-22 20:36:22 +0100
  62. +++ gcc/system.h 2007-05-17 12:16:14 +0200
  63. @@ -394,10 +394,6 @@
  64. extern char *strstr (const char *, const char *);
  65. #endif
  66. -#ifdef HAVE_MALLOC_H
  67. -#include <malloc.h>
  68. -#endif
  69. -
  70. #if defined (HAVE_DECL_MALLOC) && !HAVE_DECL_MALLOC
  71. extern void *malloc (size_t);
  72. #endif
  73. Index: libcpp/charset.c
  74. --- libcpp/charset.c.orig 2005-11-04 00:08:18 +0100
  75. +++ libcpp/charset.c 2007-05-17 12:16:14 +0200
  76. @@ -75,6 +75,7 @@
  77. #define iconv_open(x, y) (errno = EINVAL, (iconv_t)-1)
  78. #define iconv(a,b,c,d,e) (errno = EINVAL, (size_t)-1)
  79. #define iconv_close(x) (void)0
  80. +#undef ICONV_CONST
  81. #define ICONV_CONST
  82. #endif
  83. Index: libcpp/internal.h
  84. --- libcpp/internal.h.orig 2006-02-18 10:25:31 +0100
  85. +++ libcpp/internal.h 2007-05-17 12:16:14 +0200
  86. @@ -33,6 +33,7 @@
  87. #if HAVE_ICONV
  88. #include <iconv.h>
  89. #else
  90. +#undef HAVE_ICONV
  91. #define HAVE_ICONV 0
  92. typedef int iconv_t; /* dummy */
  93. #endif
  94. Index: gcc/config/i386/driver-i386.c
  95. --- gcc/config/i386/driver-i386.c.orig 2006-12-29 07:09:06 +0100
  96. +++ gcc/config/i386/driver-i386.c 2007-07-10 09:16:56 +0200
  97. @@ -26,7 +26,7 @@
  98. const char *host_detect_local_cpu (int argc, const char **argv);
  99. -#ifdef GCC_VERSION
  100. +#if defined(GCC_VERSION) && GCC_VERSION > 0
  101. #define cpuid(num,a,b,c,d) \
  102. asm volatile ("xchgl %%ebx, %1; cpuid; xchgl %%ebx, %1" \
  103. : "=a" (a), "=r" (b), "=c" (c), "=d" (d) \