gcc/gcc.patch

changeset 332
2289d64c2123
parent 320
d8a8300afdc8
child 406
cd6aad0e0d4e
equal deleted inserted replaced
0:957b94ce44e7 1:c4d9990cb4a7
1 Index: config.guess 1 Index: config.guess
2 --- config.guess.orig 2010-03-23 15:26:40.000000000 +0100 2 diff -Nau config.guess.orig config.guess
3 +++ config.guess 2010-08-01 23:35:02.000000000 +0200 3 --- config.guess.orig 2011-03-21 16:02:29.000000000 +0100
4 +++ config.guess 2011-03-27 18:06:45.404612233 +0200
4 @@ -194,7 +194,7 @@ 5 @@ -194,7 +194,7 @@
5 release='-gnu' 6 release='-gnu'
6 ;; 7 ;;
7 *) 8 *)
8 - release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` 9 - release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
9 + release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*//'` 10 + release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*//'`
10 ;; 11 ;;
11 esac 12 esac
12 # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: 13 # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
13 Index: gcc/config/alpha/osf.h 14 Index: gcc/config/alpha/osf5.h
14 --- gcc/config/alpha/osf.h.orig 2010-04-28 18:26:24.000000000 +0200 15 diff -Nau gcc/config/alpha/osf5.h.orig gcc/config/alpha/osf5.h
15 +++ gcc/config/alpha/osf.h 2010-08-01 23:35:02.000000000 +0200 16 --- gcc/config/alpha/osf5.h.orig 2010-11-21 01:54:14.000000000 +0100
16 @@ -77,7 +77,7 @@ 17 +++ gcc/config/alpha/osf5.h 2011-03-27 18:06:45.432326155 +0200
18 @@ -94,7 +94,7 @@
17 constructor and call-frame data structures are not accidentally 19 constructor and call-frame data structures are not accidentally
18 overridden. */ 20 overridden. */
19 #define LINK_SPEC \ 21 #define LINK_SPEC \
20 - "-G 8 %{O*:-O3} %{!O*:-O1} -S %{static:-non_shared} \ 22 - "-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} \ 23 + "-oldstyle_liblookup %{!o:-o a.out} -G 8 %{O*:-O3} %{!O*:-O1} -S %{static:-non_shared} \
22 %{!static:%{shared:-shared -hidden_symbol _GLOBAL_*} \ 24 %{!static:%{shared:-shared -hidden_symbol _GLOBAL_*} \
23 %{!shared:-call_shared}} %{pg} %{taso} %{rpath*}" 25 %{!shared:-call_shared}} %{pg} %{taso} %{rpath*}"
24 26
25 Index: gcc/config/i386/sol2-10.h 27 Index: gcc/config/i386/sol2-10.h
26 --- gcc/config/i386/sol2-10.h.orig 2010-07-14 10:47:54.000000000 +0200 28 diff -Nau gcc/config/i386/sol2-10.h.orig gcc/config/i386/sol2-10.h
27 +++ gcc/config/i386/sol2-10.h 2010-08-01 23:37:46.000000000 +0200 29 --- gcc/config/i386/sol2-10.h.orig 2011-01-26 21:23:17.000000000 +0100
28 @@ -114,7 +114,7 @@ 30 +++ gcc/config/i386/sol2-10.h 2011-03-27 18:06:45.455032224 +0200
31 @@ -105,7 +105,7 @@
29 -R /usr/ucblib/64} \ 32 -R /usr/ucblib/64} \
30 %{!compat-bsd: \ 33 %{!compat-bsd: \
31 %{!YP,*:%{p|pg:-Y P,/usr/lib/libp/64:/lib/64:/usr/lib/64} \ 34 %{!YP,*:%{p|pg:-Y P,/usr/lib/libp/64:/lib/64:/usr/lib/64} \
32 - %{!p:%{!pg:-Y P,/lib/64:/usr/lib/64}}}}" 35 - %{!p:%{!pg:-Y P,/lib/64:/usr/lib/64}}}}"
33 + %{!p:%{!pg:-Y P,/lib/64:/usr/lib/64}}} -rpath-link /lib/64:/usr/lib/64}" 36 + %{!p:%{!pg:-Y P,/lib/64:/usr/lib/64}}} -rpath-link /lib/64:/usr/lib/64}"
34 37
35 #undef LINK_ARCH64_SPEC 38 #undef LINK_ARCH64_SPEC
36 #define LINK_ARCH64_SPEC LINK_ARCH64_SPEC_BASE 39 #define LINK_ARCH64_SPEC LINK_ARCH64_SPEC_BASE
37 @@ -131,7 +131,7 @@ 40 @@ -122,7 +122,7 @@
38 #endif 41 #endif
39 42
40 #define TARGET_LD_EMULATION "%{m64:-m " X86_64_EMULATION "}" \ 43 #define TARGET_LD_EMULATION "%{m64:-m " X86_64_EMULATION "}" \
41 - "%{!m64:-m " I386_EMULATION "} " 44 - "%{!m64:-m " I386_EMULATION "} "
42 + "%{!m64:} " 45 + "%{!m64:} "
43 #else 46 #else
44 #define TARGET_LD_EMULATION "" 47 #define TARGET_LD_EMULATION ""
45 #endif 48 #endif
46 Index: gcc/config/i386/sol2.h 49 Index: gcc/config/i386/sol2.h
47 --- gcc/config/i386/sol2.h.orig 2010-07-14 10:47:54.000000000 +0200 50 diff -Nau gcc/config/i386/sol2.h.orig gcc/config/i386/sol2.h
48 +++ gcc/config/i386/sol2.h 2010-08-01 23:35:02.000000000 +0200 51 --- gcc/config/i386/sol2.h.orig 2011-02-02 17:58:49.000000000 +0100
49 @@ -76,6 +76,9 @@ 52 +++ gcc/config/i386/sol2.h 2011-03-27 18:06:45.458713885 +0200
53 @@ -73,6 +73,9 @@
50 #undef ASM_QUAD 54 #undef ASM_QUAD
51 #endif 55 #endif
52 56
53 +#undef DEFAULT_PCC_STRUCT_RETURN 57 +#undef DEFAULT_PCC_STRUCT_RETURN
54 +#define DEFAULT_PCC_STRUCT_RETURN 1 58 +#define DEFAULT_PCC_STRUCT_RETURN 1
55 + 59 +
56 /* The Solaris assembler wants a .local for non-exported aliases. */ 60 /* The Solaris assembler wants a .local for non-exported aliases. */
57 #define ASM_OUTPUT_DEF_FROM_DECLS(FILE, DECL, TARGET) \ 61 #define ASM_OUTPUT_DEF_FROM_DECLS(FILE, DECL, TARGET) \
58 do { \ 62 do { \
59 Index: gcc/config/sol2.h 63 Index: gcc/config/sol2.h
60 --- gcc/config/sol2.h.orig 2010-04-16 15:33:58.000000000 +0200 64 diff -Nau gcc/config/sol2.h.orig gcc/config/sol2.h
61 +++ gcc/config/sol2.h 2010-08-01 23:35:02.000000000 +0200 65 --- gcc/config/sol2.h.orig 2011-01-26 21:23:17.000000000 +0100
62 @@ -176,8 +176,8 @@ 66 +++ gcc/config/sol2.h 2011-03-27 18:06:45.477952967 +0200
63 %{b} \ 67 @@ -183,8 +183,8 @@
68 "%{h*} %{v:-V} \
64 %{!shared:%{!static:%{rdynamic: " RDYNAMIC_SPEC "}}} \ 69 %{!shared:%{!static:%{rdynamic: " RDYNAMIC_SPEC "}}} \
65 %{static:-dn -Bstatic} \ 70 %{static:-dn -Bstatic} \
66 - %{shared:-G -dy %{!mimpure-text:-z text}} \ 71 - %{shared:-G -dy %{!mimpure-text:-z text}} \
67 - %{symbolic:-Bsymbolic -G -dy -z text} \ 72 - %{symbolic:-Bsymbolic -G -dy -z text} \
68 + %{shared:-G -dy} \ 73 + %{shared:-G -dy} \
69 + %{symbolic:-Bsymbolic -G -dy} \ 74 + %{symbolic:-Bsymbolic -G -dy} \
70 %(link_arch) \ 75 %(link_arch) \
71 %{Qy:} %{!Qn:-Qy}" 76 %{Qy:} %{!Qn:-Qy}"
72 77
73 Index: gcc/system.h 78 Index: gcc/system.h
74 --- gcc/system.h.orig 2009-12-14 00:00:53.000000000 +0100 79 diff -Nau gcc/system.h.orig gcc/system.h
75 +++ gcc/system.h 2010-08-01 23:35:02.000000000 +0200 80 --- gcc/system.h.orig 2011-01-09 13:41:33.000000000 +0100
76 @@ -398,10 +398,6 @@ 81 +++ gcc/system.h 2011-03-27 18:06:45.498233251 +0200
82 @@ -430,10 +430,6 @@
77 extern char *strstr (const char *, const char *); 83 extern char *strstr (const char *, const char *);
78 #endif 84 #endif
79 85
80 -#ifdef HAVE_MALLOC_H 86 -#ifdef HAVE_MALLOC_H
81 -#include <malloc.h> 87 -#include <malloc.h>
83 - 89 -
84 #if defined (HAVE_DECL_MALLOC) && !HAVE_DECL_MALLOC 90 #if defined (HAVE_DECL_MALLOC) && !HAVE_DECL_MALLOC
85 extern void *malloc (size_t); 91 extern void *malloc (size_t);
86 #endif 92 #endif
87 Index: libcpp/charset.c 93 Index: libcpp/charset.c
88 --- libcpp/charset.c.orig 2010-03-29 22:07:29.000000000 +0200 94 diff -Nau libcpp/charset.c.orig libcpp/charset.c
89 +++ libcpp/charset.c 2010-08-01 23:35:02.000000000 +0200 95 --- libcpp/charset.c.orig 2011-01-03 21:52:22.000000000 +0100
96 +++ libcpp/charset.c 2011-03-27 18:06:45.522800310 +0200
90 @@ -75,6 +75,7 @@ 97 @@ -75,6 +75,7 @@
91 #define iconv_open(x, y) (errno = EINVAL, (iconv_t)-1) 98 #define iconv_open(x, y) (errno = EINVAL, (iconv_t)-1)
92 #define iconv(a,b,c,d,e) (errno = EINVAL, (size_t)-1) 99 #define iconv(a,b,c,d,e) (errno = EINVAL, (size_t)-1)
93 #define iconv_close(x) (void)0 100 #define iconv_close(x) (void)0
94 +#undef ICONV_CONST 101 +#undef ICONV_CONST
95 #define ICONV_CONST 102 #define ICONV_CONST
96 #endif 103 #endif
97 104
98 Index: libcpp/internal.h 105 Index: libcpp/internal.h
99 --- libcpp/internal.h.orig 2010-03-29 22:07:29.000000000 +0200 106 diff -Nau libcpp/internal.h.orig libcpp/internal.h
100 +++ libcpp/internal.h 2010-08-01 23:35:02.000000000 +0200 107 --- libcpp/internal.h.orig 2010-09-29 20:18:38.000000000 +0200
108 +++ libcpp/internal.h 2011-03-27 18:06:45.537431542 +0200
101 @@ -29,6 +29,7 @@ 109 @@ -29,6 +29,7 @@
102 #if HAVE_ICONV 110 #if HAVE_ICONV
103 #include <iconv.h> 111 #include <iconv.h>
104 #else 112 #else
105 +#undef HAVE_ICONV 113 +#undef HAVE_ICONV

mercurial