gcc/gcc.patch

changeset 771
7173ebcfc87e
parent 473
323623610492
equal deleted inserted replaced
3:e82073af0361 4:dabd4044d33c
1 Index: config.guess 1 Index: config.guess
2 --- config.guess.orig 2011-06-06 12:34:35.000000000 +0200 2 --- config.guess.orig 2011-06-06 12:34:35.000000000 +0200
3 +++ config.guess 2012-07-21 09:15:05.000000000 +0200 3 +++ config.guess 2012-07-21 09:15:05.000000000 +0200
4 @@ -194,7 +194,7 @@ 4 @@ -190,7 +190,7 @@
5 release='-gnu' 5 release='-gnu'
6 ;; 6 ;;
7 *) 7 *)
8 - release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` 8 - release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
9 + release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*//'` 9 + release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*//'`
11 esac 11 esac
12 # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: 12 # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
13 Index: gcc/config/i386/sol2.h 13 Index: gcc/config/i386/sol2.h
14 --- gcc/config/i386/sol2.h.orig 2011-08-01 14:14:21.000000000 +0200 14 --- gcc/config/i386/sol2.h.orig 2011-08-01 14:14:21.000000000 +0200
15 +++ gcc/config/i386/sol2.h 2012-07-21 09:15:05.000000000 +0200 15 +++ gcc/config/i386/sol2.h 2012-07-21 09:15:05.000000000 +0200
16 @@ -100,6 +100,9 @@ 16 @@ -99,6 +99,9 @@
17 #undef ASM_QUAD 17 #undef ASM_QUAD
18 #endif 18 #endif
19 19
20 +#undef DEFAULT_PCC_STRUCT_RETURN 20 +#undef DEFAULT_PCC_STRUCT_RETURN
21 +#define DEFAULT_PCC_STRUCT_RETURN 1 21 +#define DEFAULT_PCC_STRUCT_RETURN 1
36 #undef LINK_ARCH64_SPEC 36 #undef LINK_ARCH64_SPEC
37 #ifndef USE_GLD 37 #ifndef USE_GLD
38 Index: gcc/config/sol2.h 38 Index: gcc/config/sol2.h
39 --- gcc/config/sol2.h.orig 2011-08-18 16:47:46.000000000 +0200 39 --- gcc/config/sol2.h.orig 2011-08-18 16:47:46.000000000 +0200
40 +++ gcc/config/sol2.h 2012-07-21 09:15:05.000000000 +0200 40 +++ gcc/config/sol2.h 2012-07-21 09:15:05.000000000 +0200
41 @@ -171,8 +171,8 @@ 41 @@ -176,8 +176,8 @@
42 "%{h*} %{v:-V} \ 42 "%{h*} %{v:-V} \
43 %{!shared:%{!static:%{rdynamic: " RDYNAMIC_SPEC "}}} \ 43 %{!shared:%{!static:%{rdynamic: " RDYNAMIC_SPEC "}}} \
44 %{static:-dn -Bstatic} \ 44 %{static:-dn -Bstatic} \
45 - %{shared:-G -dy %{!mimpure-text:-z text}} \ 45 - %{shared:-G -dy %{!mimpure-text:-z text}} \
46 - %{symbolic:-Bsymbolic -G -dy -z text} \ 46 - %{symbolic:-Bsymbolic -G -dy -z text} \
47 + %{shared:-G -dy} \ 47 + %{shared:-G -dy} \
48 + %{symbolic:-Bsymbolic -G -dy} \ 48 + %{symbolic:-Bsymbolic -G -dy} \
49 %{pthreads|pthread|fprofile-generate*:" LIB_THREAD_LDFLAGS_SPEC "} \
50 %(link_arch) \ 49 %(link_arch) \
51 %{Qy:} %{!Qn:-Qy}" 50 %{Qy:} %{!Qn:-Qy}"
51
52 Index: gcc/system.h 52 Index: gcc/system.h
53 --- gcc/system.h.orig 2012-02-17 00:16:28.000000000 +0100 53 --- gcc/system.h.orig 2012-02-17 00:16:28.000000000 +0100
54 +++ gcc/system.h 2012-07-21 09:15:05.000000000 +0200 54 +++ gcc/system.h 2012-07-21 09:15:05.000000000 +0200
55 @@ -455,10 +455,6 @@ 55 @@ -456,10 +456,6 @@
56 } 56 }
57 #endif 57 #endif
58 58
59 -#ifdef HAVE_MALLOC_H 59 -#ifdef HAVE_MALLOC_H
60 -#include <malloc.h> 60 -#include <malloc.h>
64 extern "C" { 64 extern "C" {
65 #endif 65 #endif
66 Index: libcpp/charset.c 66 Index: libcpp/charset.c
67 --- libcpp/charset.c.orig 2011-01-03 21:52:22.000000000 +0100 67 --- libcpp/charset.c.orig 2011-01-03 21:52:22.000000000 +0100
68 +++ libcpp/charset.c 2012-07-21 09:15:05.000000000 +0200 68 +++ libcpp/charset.c 2012-07-21 09:15:05.000000000 +0200
69 @@ -75,6 +75,7 @@ 69 @@ -74,6 +74,7 @@
70 #define iconv_open(x, y) (errno = EINVAL, (iconv_t)-1) 70 #define iconv_open(x, y) (errno = EINVAL, (iconv_t)-1)
71 #define iconv(a,b,c,d,e) (errno = EINVAL, (size_t)-1) 71 #define iconv(a,b,c,d,e) (errno = EINVAL, (size_t)-1)
72 #define iconv_close(x) (void)0 72 #define iconv_close(x) (void)0
73 +#undef ICONV_CONST 73 +#undef ICONV_CONST
74 #define ICONV_CONST 74 #define ICONV_CONST
75 #endif 75 #endif
76 76
77 Index: libcpp/internal.h 77 Index: libcpp/internal.h
78 --- libcpp/internal.h.orig 2012-01-09 09:48:43.000000000 +0100 78 --- libcpp/internal.h.orig 2012-01-09 09:48:43.000000000 +0100
79 +++ libcpp/internal.h 2012-07-21 09:15:05.000000000 +0200 79 +++ libcpp/internal.h 2012-07-21 09:15:05.000000000 +0200
80 @@ -29,6 +29,7 @@ 80 @@ -28,6 +28,7 @@
81 #if HAVE_ICONV 81 #if HAVE_ICONV
82 #include <iconv.h> 82 #include <iconv.h>
83 #else 83 #else
84 +#undef HAVE_ICONV 84 +#undef HAVE_ICONV
85 #define HAVE_ICONV 0 85 #define HAVE_ICONV 0

mercurial