Ver código fonte

gcc: Build gcc version 4.8.3, refresh patches from openwrt.git.

Signed-off-by: Christian Beier <dontmind@freeshell.org>
Christian Beier 10 anos atrás
pai
commit
c704c2f503

+ 2
- 2
devel/gcc/Makefile Ver arquivo

@@ -9,14 +9,14 @@
9 9
 include $(TOPDIR)/rules.mk
10 10
 
11 11
 PKG_NAME:=gcc
12
-PKG_VERSION:=4.6.3
12
+PKG_VERSION:=4.8.3
13 13
 PKG_RELEASE:=1
14 14
 PKG_SOURCE_URL:=ftp://ftp.fu-berlin.de/unix/languages/gcc/releases/gcc-$(PKG_VERSION) \
15 15
      http://mirrors.rcn.net/pub/sourceware/gcc/releases/gcc-$(PKG_VERSION) \
16 16
     ftp://ftp.gnu.org/gnu/gcc/releases/gcc-$(PKG_VERSION)
17 17
 
18 18
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
19
-PKG_MD5SUM:=773092fe5194353b02bb0110052a972e
19
+PKG_MD5SUM:=7c60f24fab389f77af203d2516ee110f
20 20
 PKG_INSTALL:=1
21 21
 PKG_FIXUP:=libtool
22 22
 PKG_BUILD_PARALLEL:=1

+ 1
- 12
devel/gcc/patches/010-documentation.patch Ver arquivo

@@ -1,8 +1,6 @@
1
-diff --git a/gcc/Makefile.in b/gcc/Makefile.in
2
-index 9b6af49..a5404be 100644
3 1
 --- a/gcc/Makefile.in
4 2
 +++ b/gcc/Makefile.in
5
-@@ -4267,18 +4267,10 @@ doc/gcc.info: $(TEXI_GCC_FILES)
3
+@@ -4326,18 +4326,10 @@ doc/gcc.info: $(TEXI_GCC_FILES)
6 4
  doc/gccint.info: $(TEXI_GCCINT_FILES)
7 5
  doc/cppinternals.info: $(TEXI_CPPINT_FILES)
8 6
  
@@ -23,12 +21,3 @@ index 9b6af49..a5404be 100644
23 21
  
24 22
  doc/cpp.dvi: $(TEXI_CPP_FILES)
25 23
  doc/gcc.dvi: $(TEXI_GCC_FILES)
26
-@@ -4496,7 +4488,7 @@ maintainer-clean:
27
- # Install the driver last so that the window when things are
28
- # broken is small.
29
- install: install-common $(INSTALL_HEADERS) \
30
--    install-cpp install-man install-info install-@POSUB@ \
31
-+    install-cpp install-@POSUB@ \
32
-     install-driver install-lto-wrapper
33
- 
34
- ifeq ($(enable_plugin),yes)

+ 0
- 65
devel/gcc/patches/040-gcc_bug_49696.patch Ver arquivo

@@ -1,65 +0,0 @@
1
---- a/gcc/config/mips/sync.md
2
-+++ b/gcc/config/mips/sync.md
3
-@@ -136,7 +136,7 @@
4
-           [(match_operand:SI 1 "register_operand" "d")
5
- 	   (match_operand:SI 2 "register_operand" "d")
6
- 	   (atomic_hiqi_op:SI (match_dup 0)
7
--			      (match_operand:SI 3 "register_operand" "dJ"))]
8
-+			      (match_operand:SI 3 "reg_or_0_operand" "dJ"))]
9
- 	  UNSPEC_SYNC_OLD_OP_12))
10
-    (clobber (match_scratch:SI 4 "=&d"))]
11
-   "GENERATE_LL_SC"
12
-@@ -177,7 +177,7 @@
13
-           [(match_operand:SI 2 "register_operand" "d")
14
- 	   (match_operand:SI 3 "register_operand" "d")
15
- 	   (atomic_hiqi_op:SI (match_dup 0)
16
--			      (match_operand:SI 4 "register_operand" "dJ"))]
17
-+			      (match_operand:SI 4 "reg_or_0_operand" "dJ"))]
18
- 	  UNSPEC_SYNC_OLD_OP_12))
19
-    (clobber (match_scratch:SI 5 "=&d"))]
20
-   "GENERATE_LL_SC"
21
-@@ -218,7 +218,7 @@
22
- 	   (match_operand:SI 2 "register_operand" "d")
23
- 	   (match_operand:SI 3 "register_operand" "d")
24
- 	   (atomic_hiqi_op:SI (match_dup 0)
25
--			      (match_operand:SI 4 "register_operand" "dJ"))]
26
-+			      (match_operand:SI 4 "reg_or_0_operand" "dJ"))]
27
- 	  UNSPEC_SYNC_NEW_OP_12))
28
-    (set (match_dup 1)
29
- 	(unspec_volatile:SI
30
-@@ -259,7 +259,7 @@
31
-           [(match_operand:SI 1 "register_operand" "d")
32
- 	   (match_operand:SI 2 "register_operand" "d")
33
- 	   (match_dup 0)
34
--	   (match_operand:SI 3 "register_operand" "dJ")]
35
-+	   (match_operand:SI 3 "reg_or_0_operand" "dJ")]
36
- 	  UNSPEC_SYNC_OLD_OP_12))
37
-    (clobber (match_scratch:SI 4 "=&d"))]
38
-   "GENERATE_LL_SC"
39
-@@ -298,7 +298,7 @@
40
- 	(unspec_volatile:SI
41
-           [(match_operand:SI 2 "register_operand" "d")
42
- 	   (match_operand:SI 3 "register_operand" "d")
43
--	   (match_operand:SI 4 "register_operand" "dJ")]
44
-+	   (match_operand:SI 4 "reg_or_0_operand" "dJ")]
45
- 	  UNSPEC_SYNC_OLD_OP_12))
46
-    (clobber (match_scratch:SI 5 "=&d"))]
47
-   "GENERATE_LL_SC"
48
-@@ -337,7 +337,7 @@
49
-           [(match_operand:SI 1 "memory_operand" "+R")
50
- 	   (match_operand:SI 2 "register_operand" "d")
51
- 	   (match_operand:SI 3 "register_operand" "d")
52
--	   (match_operand:SI 4 "register_operand" "dJ")]
53
-+	   (match_operand:SI 4 "reg_or_0_operand" "dJ")]
54
- 	  UNSPEC_SYNC_NEW_OP_12))
55
-    (set (match_dup 1)
56
- 	(unspec_volatile:SI
57
-@@ -546,7 +546,7 @@
58
-    (set (match_dup 1)
59
- 	(unspec_volatile:SI [(match_operand:SI 2 "register_operand" "d")
60
- 			     (match_operand:SI 3 "register_operand" "d")
61
--			     (match_operand:SI 4 "arith_operand" "dJ")]
62
-+			     (match_operand:SI 4 "reg_or_0_operand" "dJ")]
63
- 	  UNSPEC_SYNC_EXCHANGE_12))]
64
-   "GENERATE_LL_SC"
65
-   { return mips_output_sync_loop (insn, operands); }

+ 133
- 52
devel/gcc/patches/200-musl.patch Ver arquivo

@@ -1,16 +1,6 @@
1
---- a/config.sub
2
-+++ b/config.sub
3
-@@ -125,6 +125,7 @@ esac
4
- maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
5
- case $maybe_os in
6
-   nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
7
-+  linux-musl* | \
8
-   linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
9
-   knetbsd*-gnu* | netbsd*-gnu* | \
10
-   kopensolaris*-gnu* | \
11 1
 --- a/gcc/config.gcc
12 2
 +++ b/gcc/config.gcc
13
-@@ -485,7 +485,7 @@ case ${target} in
3
+@@ -549,7 +549,7 @@ case ${target} in
14 4
  esac
15 5
  
16 6
  # Common C libraries.
@@ -19,7 +9,7 @@
19 9
  
20 10
  # Common parts for widely ported systems.
21 11
  case ${target} in
22
-@@ -598,6 +598,9 @@ case ${target} in
12
+@@ -652,6 +652,9 @@ case ${target} in
23 13
      *-*-*uclibc*)
24 14
        tm_defines="$tm_defines DEFAULT_LIBC=LIBC_UCLIBC"
25 15
        ;;
@@ -31,7 +21,7 @@
31 21
        ;;
32 22
 --- a/gcc/config/arm/linux-eabi.h
33 23
 +++ b/gcc/config/arm/linux-eabi.h
34
-@@ -78,6 +78,10 @@
24
+@@ -77,6 +77,10 @@
35 25
      %{mfloat-abi=soft*:" GLIBC_DYNAMIC_LINKER_SOFT_FLOAT "} \
36 26
      %{!mfloat-abi=*:" GLIBC_DYNAMIC_LINKER_DEFAULT "}"
37 27
  
@@ -44,29 +34,24 @@
44 34
  #undef  LINK_SPEC
45 35
 --- a/gcc/config/i386/linux.h
46 36
 +++ b/gcc/config/i386/linux.h
47
-@@ -93,6 +93,7 @@ along with GCC; see the file COPYING3.
48
- /* These macros may be overridden in k*bsd-gnu.h and i386/k*bsd-gnu.h. */
49
- #define LINK_EMULATION "elf_i386"
37
+@@ -21,3 +21,4 @@ along with GCC; see the file COPYING3.
38
+ 
39
+ #define GNU_USER_LINK_EMULATION "elf_i386"
50 40
  #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
51 41
 +#define MUSL_DYNAMIC_LINKER "/lib/ld-musl-i386.so.1"
52
- 
53
- #undef  ASM_SPEC
54
- #define ASM_SPEC \
55 42
 --- a/gcc/config/i386/linux64.h
56 43
 +++ b/gcc/config/i386/linux64.h
57
-@@ -65,6 +65,9 @@ see the files COPYING3 and COPYING.RUNTI
44
+@@ -30,3 +30,7 @@ see the files COPYING3 and COPYING.RUNTI
58 45
  #define GLIBC_DYNAMIC_LINKER32 "/lib/ld-linux.so.2"
59 46
  #define GLIBC_DYNAMIC_LINKER64 "/lib64/ld-linux-x86-64.so.2"
60
- 
47
+ #define GLIBC_DYNAMIC_LINKERX32 "/libx32/ld-linux-x32.so.2"
48
++
61 49
 +#define MUSL_DYNAMIC_LINKER32 "/lib/ld-musl-i386.so.1"
62 50
 +#define MUSL_DYNAMIC_LINKER64 "/lib/ld-musl-x86_64.so.1"
63
-+
64
- #if TARGET_64BIT_DEFAULT
65
- #define SPEC_32 "m32"
66
- #define SPEC_64 "!m32"
51
++#define MUSL_DYNAMIC_LINKERX32 "/lib/ld-musl-x32.so.1"
67 52
 --- a/gcc/config/linux.h
68 53
 +++ b/gcc/config/linux.h
69
-@@ -33,10 +33,12 @@ see the files COPYING3 and COPYING.RUNTI
54
+@@ -32,10 +32,12 @@ see the files COPYING3 and COPYING.RUNTI
70 55
  #define OPTION_GLIBC  (DEFAULT_LIBC == LIBC_GLIBC)
71 56
  #define OPTION_UCLIBC (DEFAULT_LIBC == LIBC_UCLIBC)
72 57
  #define OPTION_BIONIC (DEFAULT_LIBC == LIBC_BIONIC)
@@ -78,8 +63,8 @@
78 63
 +#define OPTION_MUSL   (linux_libc == LIBC_MUSL)
79 64
  #endif
80 65
  
81
- #define LINUX_TARGET_OS_CPP_BUILTINS()				\
82
-@@ -54,18 +56,21 @@ see the files COPYING3 and COPYING.RUNTI
66
+ #define GNU_USER_TARGET_OS_CPP_BUILTINS()			\
67
+@@ -53,18 +55,21 @@ see the files COPYING3 and COPYING.RUNTI
83 68
     uClibc or Bionic is the default C library and whether
84 69
     -muclibc or -mglibc or -mbionic has been passed to change the default.  */
85 70
  
@@ -109,20 +94,24 @@
109 94
  #else
110 95
  #error "Unsupported DEFAULT_LIBC"
111 96
  #endif /* DEFAULT_LIBC */
112
-@@ -83,13 +88,13 @@ see the files COPYING3 and COPYING.RUNTI
97
+@@ -84,16 +89,16 @@ see the files COPYING3 and COPYING.RUNTI
113 98
  
114
- #define LINUX_DYNAMIC_LINKER						\
99
+ #define GNU_USER_DYNAMIC_LINKER						\
115 100
    CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,	\
116 101
 -			 BIONIC_DYNAMIC_LINKER)
117 102
 +			 BIONIC_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER)
118
- #define LINUX_DYNAMIC_LINKER32						\
103
+ #define GNU_USER_DYNAMIC_LINKER32					\
119 104
    CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER32, \
120 105
 -			 BIONIC_DYNAMIC_LINKER32)
121 106
 +			 BIONIC_DYNAMIC_LINKER32, MUSL_DYNAMIC_LINKER32)
122
- #define LINUX_DYNAMIC_LINKER64						\
107
+ #define GNU_USER_DYNAMIC_LINKER64					\
123 108
    CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKER64, UCLIBC_DYNAMIC_LINKER64, \
124 109
 -			 BIONIC_DYNAMIC_LINKER64)
125 110
 +			 BIONIC_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKER64)
111
+ #define GNU_USER_DYNAMIC_LINKERX32					\
112
+   CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKERX32, UCLIBC_DYNAMIC_LINKERX32, \
113
+-			 BIONIC_DYNAMIC_LINKERX32)
114
++			 BIONIC_DYNAMIC_LINKERX32, MUSL_DYNAMIC_LINKERX32)
126 115
  
127 116
  /* Determine whether the entire c99 runtime
128 117
     is present in the runtime library.  */
@@ -138,18 +127,67 @@
138 127
 +Use musl C library
139 128
 --- a/gcc/config/mips/linux.h
140 129
 +++ b/gcc/config/mips/linux.h
141
-@@ -63,6 +63,8 @@ along with GCC; see the file COPYING3.
130
+@@ -18,3 +18,5 @@ along with GCC; see the file COPYING3.
131
+ <http://www.gnu.org/licenses/>.  */
142 132
  
143 133
  #define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
144
- 
145
-+#define MUSL_DYNAMIC_LINKER "/lib/ld-musl-mips.so.1"
146 134
 +
147
- /* Borrowed from sparc/linux.h */
148
- #undef LINK_SPEC
149
- #define LINK_SPEC \
135
++#define MUSL_DYNAMIC_LINKER "/lib/ld-musl-mips.so.1"
136
+--- a/gcc/config/rs6000/linux64.h
137
++++ b/gcc/config/rs6000/linux64.h
138
+@@ -364,17 +364,21 @@ extern int dot_symbols;
139
+ #define GLIBC_DYNAMIC_LINKER64 "/lib64/ld64.so.1"
140
+ #define UCLIBC_DYNAMIC_LINKER32 "/lib/ld-uClibc.so.0"
141
+ #define UCLIBC_DYNAMIC_LINKER64 "/lib/ld64-uClibc.so.0"
142
++#define MUSL_DYNAMIC_LINKER32 "/lib/ld-musl-powerpc.so.1"
143
++#define MUSL_DYNAMIC_LINKER64 "/lib/ld-musl-powerpc64.so.1"
144
+ #if DEFAULT_LIBC == LIBC_UCLIBC
145
+-#define CHOOSE_DYNAMIC_LINKER(G, U) "%{mglibc:" G ";:" U "}"
146
++#define CHOOSE_DYNAMIC_LINKER(G, U, M) "%{mglibc:" G ";:%{mmusl:" M ";:" U "}}"
147
+ #elif DEFAULT_LIBC == LIBC_GLIBC
148
+-#define CHOOSE_DYNAMIC_LINKER(G, U) "%{muclibc:" U ";:" G "}"
149
++#define CHOOSE_DYNAMIC_LINKER(G, U, M) "%{muclibc:" U ";:%{mmusl:" M ";:" G "}}"
150
++#elif DEFAULT_LIBC == LIBC_MUSL
151
++#define CHOOSE_DYNAMIC_LINKER(G, U, M) "%{mglibc:" G ";:%{muclibc:" U ";:" M "}}"
152
+ #else
153
+ #error "Unsupported DEFAULT_LIBC"
154
+ #endif
155
+ #define GNU_USER_DYNAMIC_LINKER32 \
156
+-  CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER32)
157
++  CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER32, MUSL_DYNAMIC_LINKER32)
158
+ #define GNU_USER_DYNAMIC_LINKER64 \
159
+-  CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKER64, UCLIBC_DYNAMIC_LINKER64)
160
++  CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKER64, UCLIBC_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKER64)
161
+ 
162
+ 
163
+ #define LINK_OS_LINUX_SPEC32 "-m elf32ppclinux %{!shared: %{!static: \
164
+--- a/gcc/config/rs6000/sysv4.h
165
++++ b/gcc/config/rs6000/sysv4.h
166
+@@ -789,15 +789,18 @@ extern int fixuplabelno;
167
+ 
168
+ #define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
169
+ #define UCLIBC_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
170
++#define MUSL_DYNAMIC_LINKER "/lib/ld-musl-powerpc.so.1"
171
+ #if DEFAULT_LIBC == LIBC_UCLIBC
172
+-#define CHOOSE_DYNAMIC_LINKER(G, U) "%{mglibc:" G ";:" U "}"
173
++#define CHOOSE_DYNAMIC_LINKER(G, U, M) "%{mglibc:" G ";:%{mmusl:" M ";:" U "}}"
174
++#elif DEFAULT_LIBC == LIBC_MUSL
175
++#define CHOOSE_DYNAMIC_LINKER(G, U, M) "%{mglibc:" G ";:%{muclibc:" U ";:" M "}}"
176
+ #elif !defined (DEFAULT_LIBC) || DEFAULT_LIBC == LIBC_GLIBC
177
+-#define CHOOSE_DYNAMIC_LINKER(G, U) "%{muclibc:" U ";:" G "}"
178
++#define CHOOSE_DYNAMIC_LINKER(G, U, M) "%{muclibc:" U ";:%{mmusl:" M ";:" G "}}"
179
+ #else
180
+ #error "Unsupported DEFAULT_LIBC"
181
+ #endif
182
+ #define GNU_USER_DYNAMIC_LINKER \
183
+-  CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER)
184
++  CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER)
185
+ 
186
+ #define LINK_OS_LINUX_SPEC "-m elf32ppclinux %{!shared: %{!static: \
187
+   %{rdynamic:-export-dynamic} \
150 188
 --- a/gcc/ginclude/stddef.h
151 189
 +++ b/gcc/ginclude/stddef.h
152
-@@ -184,6 +184,7 @@ typedef __PTRDIFF_TYPE__ ptrdiff_t;
190
+@@ -181,6 +181,7 @@ typedef __PTRDIFF_TYPE__ ptrdiff_t;
153 191
  #ifndef _GCC_SIZE_T
154 192
  #ifndef _SIZET_
155 193
  #ifndef __size_t
@@ -157,14 +195,14 @@
157 195
  #define __size_t__	/* BeOS */
158 196
  #define __SIZE_T__	/* Cray Unicos/Mk */
159 197
  #define _SIZE_T
160
-@@ -200,6 +201,7 @@ typedef __PTRDIFF_TYPE__ ptrdiff_t;
198
+@@ -197,6 +198,7 @@ typedef __PTRDIFF_TYPE__ ptrdiff_t;
161 199
  #define ___int_size_t_h
162 200
  #define _GCC_SIZE_T
163 201
  #define _SIZET_
164 202
 +#define __DEFINED_size_t /* musl */
165
- #if defined (__FreeBSD__) && (__FreeBSD__ >= 5)
166
- /* __size_t is a typedef on FreeBSD 5!, must not trash it. */
167
- #else
203
+ #if (defined (__FreeBSD__) && (__FreeBSD__ >= 5)) \
204
+   || defined(__FreeBSD_kernel__)
205
+ /* __size_t is a typedef on FreeBSD 5, must not trash it. */
168 206
 @@ -214,6 +216,7 @@ typedef __SIZE_TYPE__ size_t;
169 207
  typedef long ssize_t;
170 208
  #endif /* __BEOS__ */
@@ -184,9 +222,54 @@
184 222
  #include "libgomp.h"
185 223
  #include <unistd.h>
186 224
  #if TIME_WITH_SYS_TIME
225
+--- a/libitm/config/arm/hwcap.cc
226
++++ b/libitm/config/arm/hwcap.cc
227
+@@ -40,7 +40,11 @@ int GTM_hwcap HIDDEN = 0
228
+ 
229
+ #ifdef __linux__
230
+ #include <unistd.h>
231
++#ifdef __GLIBC__
232
+ #include <sys/fcntl.h>
233
++#else
234
++#include <fcntl.h>
235
++#endif
236
+ #include <elf.h>
237
+ 
238
+ static void __attribute__((constructor))
239
+--- a/libitm/config/linux/x86/tls.h
240
++++ b/libitm/config/linux/x86/tls.h
241
+@@ -25,16 +25,19 @@
242
+ #ifndef LIBITM_X86_TLS_H
243
+ #define LIBITM_X86_TLS_H 1
244
+ 
245
+-#if defined(__GLIBC_PREREQ) && __GLIBC_PREREQ(2, 10)
246
++#if defined(__GLIBC_PREREQ)
247
++#if __GLIBC_PREREQ(2, 10)
248
+ /* Use slots in the TCB head rather than __thread lookups.
249
+    GLIBC has reserved words 10 through 13 for TM.  */
250
+ #define HAVE_ARCH_GTM_THREAD 1
251
+ #define HAVE_ARCH_GTM_THREAD_DISP 1
252
+ #endif
253
++#endif
254
+ 
255
+ #include "config/generic/tls.h"
256
+ 
257
+-#if defined(__GLIBC_PREREQ) && __GLIBC_PREREQ(2, 10)
258
++#if defined(__GLIBC_PREREQ)
259
++#if __GLIBC_PREREQ(2, 10)
260
+ namespace GTM HIDDEN {
261
+ 
262
+ #ifdef __x86_64__
263
+@@ -101,5 +104,6 @@ static inline void set_abi_disp(struct a
264
+ 
265
+ } // namespace GTM
266
+ #endif /* >= GLIBC 2.10 */
267
++#endif
268
+ 
269
+ #endif // LIBITM_X86_TLS_H
187 270
 --- a/libstdc++-v3/configure.host
188 271
 +++ b/libstdc++-v3/configure.host
189
-@@ -237,6 +237,13 @@ case "${host_os}" in
272
+@@ -264,6 +264,13 @@ case "${host_os}" in
190 273
      os_include_dir="os/bsd/freebsd"
191 274
      ;;
192 275
    gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
@@ -200,7 +283,7 @@
200 283
      if [ "$uclibc" = "yes" ]; then
201 284
        os_include_dir="os/uclibc"
202 285
      elif [ "$bionic" = "yes" ]; then
203
-@@ -245,6 +252,9 @@ case "${host_os}" in
286
+@@ -272,6 +279,9 @@ case "${host_os}" in
204 287
        os_include_dir="os/gnu-linux"
205 288
      fi
206 289
      ;;
@@ -212,22 +295,19 @@
212 295
      ;;
213 296
 --- a/gcc/config/mips/linux64.h
214 297
 +++ b/gcc/config/mips/linux64.h
215
-@@ -40,9 +40,12 @@ along with GCC; see the file COPYING3.
298
+@@ -27,6 +27,9 @@ along with GCC; see the file COPYING3.
216 299
  #define GLIBC_DYNAMIC_LINKERN32 "/lib32/ld.so.1"
217 300
  #define UCLIBC_DYNAMIC_LINKERN32 "/lib32/ld-uClibc.so.0"
218 301
  #define BIONIC_DYNAMIC_LINKERN32 "/system/bin/linker32"
219 302
 +#define MUSL_DYNAMIC_LINKERN32 "/lib/ld-musl-mips.so.1"
220 303
 +#define MUSL_DYNAMIC_LINKER32 "/lib/ld-musl-mips.so.1"
221 304
 +#define MUSL_DYNAMIC_LINKER64 "/lib/ld-musl-mips.so.1"
222
- #define LINUX_DYNAMIC_LINKERN32 \
305
+ #define GNU_USER_DYNAMIC_LINKERN32 \
223 306
    CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32, \
224 307
 -			 BIONIC_DYNAMIC_LINKERN32)
225 308
 +			 BIONIC_DYNAMIC_LINKERN32, MUSL_DYNAMIC_LINKERN32)
226
- 
227
- #undef LINK_SPEC
228
- #define LINK_SPEC "\
229
---- a/gcc/config/sparc/linux64.h	2013-09-10 10:02:45.663973856 +0100
230
-+++ b/gcc/config/sparc/linux64.h	2013-09-10 10:03:17.871972435 +0100
309
+--- a/gcc/config/sparc/linux64.h       2013-09-10 10:02:45.663973856 +0100
310
++++ b/gcc/config/sparc/linux64.h       2013-09-10 10:03:17.871972435 +0100
231 311
 @@ -104,6 +104,9 @@
232 312
  #define GLIBC_DYNAMIC_LINKER32 "/lib/ld-linux.so.2"
233 313
  #define GLIBC_DYNAMIC_LINKER64 "/lib64/ld-linux.so.2"
@@ -238,3 +318,4 @@
238 318
  #ifdef SPARC_BI_ARCH
239 319
  
240 320
  #undef SUBTARGET_EXTRA_SPECS
321
+

+ 0
- 11
devel/gcc/patches/301-missing-execinfo_h.patch Ver arquivo

@@ -1,11 +0,0 @@
1
---- a/boehm-gc/include/gc.h
2
-+++ b/boehm-gc/include/gc.h
3
-@@ -503,7 +503,7 @@ GC_API GC_PTR GC_malloc_atomic_ignore_of
4
- #if defined(__linux__) || defined(__GLIBC__)
5
- # include <features.h>
6
- # if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1 || __GLIBC__ > 2) \
7
--     && !defined(__ia64__)
8
-+     && !defined(__ia64__) && !defined(__UCLIBC__)
9
- #   ifndef GC_HAVE_BUILTIN_BACKTRACE
10
- #     define GC_HAVE_BUILTIN_BACKTRACE
11
- #   endif

+ 0
- 11
devel/gcc/patches/302-c99-snprintf.patch Ver arquivo

@@ -1,11 +0,0 @@
1
---- a/libstdc++-v3/include/c_global/cstdio
2
-+++ b/libstdc++-v3/include/c_global/cstdio
3
-@@ -137,7 +137,7 @@ namespace std
4
-   using ::vsprintf;
5
- } // namespace
6
- 
7
--#if _GLIBCXX_USE_C99
8
-+#if _GLIBCXX_USE_C99 || defined __UCLIBC__
9
- 
10
- #undef snprintf
11
- #undef vfscanf

+ 0
- 47
devel/gcc/patches/305-libmudflap-susv3-legacy.patch Ver arquivo

@@ -1,47 +0,0 @@
1
---- a/libmudflap/mf-hooks2.c
2
-+++ b/libmudflap/mf-hooks2.c
3
-@@ -421,7 +421,7 @@ WRAPPER2(void, bzero, void *s, size_t n)
4
- {
5
-   TRACE ("%s\n", __PRETTY_FUNCTION__);
6
-   MF_VALIDATE_EXTENT(s, n, __MF_CHECK_WRITE, "bzero region");
7
--  bzero (s, n);
8
-+  memset (s, 0, n);
9
- }
10
- 
11
- 
12
-@@ -431,7 +431,7 @@ WRAPPER2(void, bcopy, const void *src, v
13
-   TRACE ("%s\n", __PRETTY_FUNCTION__);
14
-   MF_VALIDATE_EXTENT(src, n, __MF_CHECK_READ, "bcopy src");
15
-   MF_VALIDATE_EXTENT(dest, n, __MF_CHECK_WRITE, "bcopy dest");
16
--  bcopy (src, dest, n);
17
-+  memmove (dest, src, n);
18
- }
19
- 
20
- 
21
-@@ -441,7 +441,7 @@ WRAPPER2(int, bcmp, const void *s1, cons
22
-   TRACE ("%s\n", __PRETTY_FUNCTION__);
23
-   MF_VALIDATE_EXTENT(s1, n, __MF_CHECK_READ, "bcmp 1st arg");
24
-   MF_VALIDATE_EXTENT(s2, n, __MF_CHECK_READ, "bcmp 2nd arg");
25
--  return bcmp (s1, s2, n);
26
-+  return n == 0 ? 0 : memcmp (s1, s2, n);
27
- }
28
- 
29
- 
30
-@@ -450,7 +450,7 @@ WRAPPER2(char *, index, const char *s, i
31
-   size_t n = strlen (s);
32
-   TRACE ("%s\n", __PRETTY_FUNCTION__);
33
-   MF_VALIDATE_EXTENT(s, CLAMPADD(n, 1), __MF_CHECK_READ, "index region");
34
--  return index (s, c);
35
-+  return strchr (s, c);
36
- }
37
- 
38
- 
39
-@@ -459,7 +459,7 @@ WRAPPER2(char *, rindex, const char *s,
40
-   size_t n = strlen (s);
41
-   TRACE ("%s\n", __PRETTY_FUNCTION__);
42
-   MF_VALIDATE_EXTENT(s, CLAMPADD(n, 1), __MF_CHECK_READ, "rindex region");
43
--  return rindex (s, c);
44
-+  return strrchr (s, c);
45
- }
46
- 
47
- /* XXX:  stpcpy, memccpy */

+ 8
- 8
devel/gcc/patches/800-arm_v5te_no_ldrd_strd.patch Ver arquivo

@@ -1,11 +1,11 @@
1 1
 --- a/gcc/config/arm/arm.h
2 2
 +++ b/gcc/config/arm/arm.h
3
-@@ -232,7 +232,7 @@ extern void (*arm_lang_output_object_att
4
- #define TARGET_BACKTRACE	        (leaf_function_p () \
5
- 				         ? TARGET_TPCS_LEAF_FRAME \
6
- 				         : TARGET_TPCS_FRAME)
7
--#define TARGET_LDRD			(arm_arch5e && ARM_DOUBLEWORD_ALIGN)
8
-+#define TARGET_LDRD			(arm_arch6 && ARM_DOUBLEWORD_ALIGN)
9
- #define TARGET_AAPCS_BASED \
10
-     (arm_abi != ARM_ABI_APCS && arm_abi != ARM_ABI_ATPCS)
3
+@@ -271,7 +271,7 @@ extern void (*arm_lang_output_object_att
4
+ /* Thumb-1 only.  */
5
+ #define TARGET_THUMB1_ONLY		(TARGET_THUMB1 && !arm_arch_notm)
11 6
  
7
+-#define TARGET_LDRD			(arm_arch5e && ARM_DOUBLEWORD_ALIGN \
8
++#define TARGET_LDRD			(arm_arch6 && ARM_DOUBLEWORD_ALIGN \
9
+                                          && !TARGET_THUMB1)
10
+ 
11
+ /* The following two macros concern the ability to execute coprocessor

+ 18
- 19
devel/gcc/patches/810-arm-softfloat-libgcc.patch Ver arquivo

@@ -1,26 +1,25 @@
1
+--- a/libgcc/config/arm/t-linux
2
++++ b/libgcc/config/arm/t-linux
3
+@@ -1,6 +1,10 @@
4
+ LIB1ASMSRC = arm/lib1funcs.S
5
+ LIB1ASMFUNCS = _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_lnx _clzsi2 _clzdi2 \
6
+-	_ctzsi2 _arm_addsubdf3 _arm_addsubsf3
7
++	_ctzsi2 _arm_addsubdf3 _arm_addsubsf3 \
8
++	_arm_negdf2 _arm_muldivdf3 _arm_cmpdf2 _arm_unorddf2 \
9
++	_arm_fixdfsi _arm_fixunsdfsi _arm_truncdfsf2 \
10
++	_arm_negsf2 _arm_muldivsf3 _arm_cmpsf2 _arm_unordsf2 \
11
++	_arm_fixsfsi _arm_fixunssfsi
12
+ 
13
+ # Just for these, we omit the frame pointer since it makes such a big
14
+ # difference.
1 15
 --- a/gcc/config/arm/linux-elf.h
2 16
 +++ b/gcc/config/arm/linux-elf.h
3
-@@ -60,7 +60,7 @@
17
+@@ -55,8 +55,6 @@
4 18
     %{shared:-lc} \
5 19
     %{!shared:%{profile:-lc_p}%{!profile:-lc}}"
6 20
  
7
--#define LIBGCC_SPEC "%{msoft-float:-lfloat} %{mfloat-abi=soft*:-lfloat} -lgcc"
8
-+#define LIBGCC_SPEC "-lgcc"
9
- 
21
+-#define LIBGCC_SPEC "%{mfloat-abi=soft*:-lfloat} -lgcc"
22
+-
10 23
  #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
11 24
  
12
---- a/gcc/config/arm/t-linux
13
-+++ b/gcc/config/arm/t-linux
14
-@@ -23,7 +23,11 @@ TARGET_LIBGCC2_CFLAGS = -fomit-frame-poi
15
- 
16
- LIB1ASMSRC = arm/lib1funcs.asm
17
- LIB1ASMFUNCS = _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_lnx _clzsi2 _clzdi2 \
18
--	_arm_addsubdf3 _arm_addsubsf3
19
-+	_arm_addsubdf3 _arm_addsubsf3 \
20
-+	_arm_negdf2 _arm_muldivdf3 _arm_cmpdf2 _arm_unorddf2 \
21
-+	_arm_fixdfsi _arm_fixunsdfsi _arm_truncdfsf2 \
22
-+	_arm_negsf2 _arm_muldivsf3 _arm_cmpsf2 _arm_unordsf2 \
23
-+	_arm_fixsfsi _arm_fixunssfsi
24
- 
25
- # MULTILIB_OPTIONS = mhard-float/msoft-float
26
- # MULTILIB_DIRNAMES = hard-float soft-float
25
+ #define LINUX_TARGET_LINK_SPEC  "%{h*} \

+ 3
- 3
devel/gcc/patches/820-libgcc_pic.patch Ver arquivo

@@ -1,6 +1,6 @@
1 1
 --- a/libgcc/Makefile.in
2 2
 +++ b/libgcc/Makefile.in
3
-@@ -747,11 +747,12 @@ $(libgcov-objects): %$(objext): $(gcc_sr
3
+@@ -865,11 +865,12 @@ $(libgcov-objects): %$(objext): $(srcdir
4 4
  
5 5
  # Static libraries.
6 6
  libgcc.a: $(libgcc-objects)
@@ -14,7 +14,7 @@
14 14
  	-rm -f $@
15 15
  
16 16
  	objects="$(objects)";					\
17
-@@ -773,7 +774,7 @@ libgcc_s$(SHLIB_EXT): libunwind$(SHLIB_E
17
+@@ -891,7 +892,7 @@ libgcc_s$(SHLIB_EXT): libunwind$(SHLIB_E
18 18
  endif
19 19
  
20 20
  ifeq ($(enable_shared),yes)
@@ -23,7 +23,7 @@
23 23
  ifneq ($(LIBUNWIND),)
24 24
  all: libunwind$(SHLIB_EXT)
25 25
  endif
26
-@@ -954,6 +955,10 @@ install-shared:
26
+@@ -1058,6 +1059,10 @@ install-shared:
27 27
  	chmod 644 $(DESTDIR)$(inst_libdir)/libgcc_eh.a
28 28
  	$(RANLIB) $(DESTDIR)$(inst_libdir)/libgcc_eh.a
29 29
  

+ 1
- 1
devel/gcc/patches/830-arm_unbreak_armv4t.patch Ver arquivo

@@ -2,7 +2,7 @@ http://sourceware.org/ml/crossgcc/2008-05/msg00009.html
2 2
 
3 3
 --- a/gcc/config/arm/linux-eabi.h
4 4
 +++ b/gcc/config/arm/linux-eabi.h
5
-@@ -46,7 +46,7 @@
5
+@@ -45,7 +45,7 @@
6 6
     The ARM10TDMI core is the default for armv5t, so set
7 7
     SUBTARGET_CPU_DEFAULT to achieve this.  */
8 8
  #undef  SUBTARGET_CPU_DEFAULT

+ 1
- 1
devel/gcc/patches/840-armv4_pass_fix-v4bx_to_ld.patch Ver arquivo

@@ -1,6 +1,6 @@
1 1
 --- a/gcc/config/arm/linux-eabi.h
2 2
 +++ b/gcc/config/arm/linux-eabi.h
3
-@@ -82,10 +82,15 @@
3
+@@ -81,10 +81,15 @@
4 4
  #undef  MUSL_DYNAMIC_LINKER
5 5
  #define MUSL_DYNAMIC_LINKER "/lib/ld-musl-arm.so.1"
6 6
  

+ 14
- 53
devel/gcc/patches/850-use_shared_libgcc.patch Ver arquivo

@@ -1,6 +1,6 @@
1 1
 --- a/gcc/config/arm/linux-eabi.h
2 2
 +++ b/gcc/config/arm/linux-eabi.h
3
-@@ -115,10 +115,6 @@
3
+@@ -114,10 +114,6 @@
4 4
  #define ENDFILE_SPEC \
5 5
    LINUX_OR_ANDROID_LD (GNU_USER_TARGET_ENDFILE_SPEC, ANDROID_ENDFILE_SPEC)
6 6
  
@@ -9,22 +9,11 @@
9 9
 -#undef LIBGCC_SPEC
10 10
 -
11 11
  /* Clear the instruction cache from `beg' to `end'.  This is
12
-    implemented in lib1funcs.asm, so ensure an error if this definition
12
+    implemented in lib1funcs.S, so ensure an error if this definition
13 13
     is used.  */
14
---- a/gcc/config/arm/linux-elf.h
15
-+++ b/gcc/config/arm/linux-elf.h
16
-@@ -60,8 +60,6 @@
17
-    %{shared:-lc} \
18
-    %{!shared:%{profile:-lc_p}%{!profile:-lc}}"
19
- 
20
--#define LIBGCC_SPEC "-lgcc"
21
--
22
- #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
23
- 
24
- #define LINUX_TARGET_LINK_SPEC  "%{h*} \
25 14
 --- a/gcc/config/linux.h
26 15
 +++ b/gcc/config/linux.h
27
-@@ -52,6 +52,10 @@ see the files COPYING3 and COPYING.RUNTI
16
+@@ -51,6 +51,10 @@ see the files COPYING3 and COPYING.RUNTI
28 17
  	builtin_assert ("system=posix");			\
29 18
      } while (0)
30 19
  
@@ -35,19 +24,8 @@
35 24
  /* Determine which dynamic linker to use depending on whether GLIBC or
36 25
     uClibc or Bionic is the default C library and whether
37 26
     -muclibc or -mglibc or -mbionic has been passed to change the default.  */
38
---- a/gcc/config/rs6000/linux.h
39
-+++ b/gcc/config/rs6000/linux.h
40
-@@ -88,6 +88,8 @@
41
- #define USE_LD_AS_NEEDED 1
42
- #endif
43
- 
44
-+#define LIBGCC_SPEC "%{!static:%{!static-libgcc:-lgcc_s}} -lgcc"
45
-+
46
- #undef  TARGET_VERSION
47
- #define TARGET_VERSION fprintf (stderr, " (PowerPC GNU/Linux)");
48
- 
49
---- a/gcc/mkmap-symver.awk
50
-+++ b/gcc/mkmap-symver.awk
27
+--- a/libgcc/mkmap-symver.awk
28
++++ b/libgcc/mkmap-symver.awk
51 29
 @@ -132,5 +132,5 @@ function output(lib) {
52 30
    else if (inherit[lib])
53 31
      printf("} %s;\n", inherit[lib]);
@@ -55,32 +33,15 @@
55 33
 -    printf ("\n  local:\n\t*;\n};\n");
56 34
 +    printf ("\n\t*;\n};\n");
57 35
  }
58
---- a/libgcc/Makefile.in
59
-+++ b/libgcc/Makefile.in
60
-@@ -269,6 +269,12 @@ ifeq ($(enable_shared),yes)
61
-     install-libunwind = install-libunwind
62
-   endif
36
+--- a/gcc/config/rs6000/linux.h
37
++++ b/gcc/config/rs6000/linux.h
38
+@@ -61,6 +61,9 @@
39
+ #undef  CPLUSPLUS_CPP_SPEC
40
+ #define CPLUSPLUS_CPP_SPEC "-D_GNU_SOURCE %(cpp)"
63 41
  
64
-+else
65
-+# Not enable_shared.
66
-+iterator = $(srcdir)/empty.mk $(patsubst %,$(srcdir)/static-object.mk,$(iter-items))
67
-+endif
68
-+
42
++#undef LIBGCC_SPEC
43
++#define LIBGCC_SPEC "%{!static:%{!static-libgcc:-lgcc_s}} -lgcc"
69 44
 +
70
- # For -fvisibility=hidden.  We need both a -fvisibility=hidden on
71
- # the command line, and a #define to prevent libgcc2.h etc from
72
- # overriding that with #pragmas.
73
-@@ -291,13 +297,6 @@ else
74
- gen-hide-list = echo > $@
75
- endif
45
+ #undef  LINK_SHLIB_SPEC
46
+ #define LINK_SHLIB_SPEC "%{shared:-shared} %{!shared: %{static:-static}}"
76 47
  
77
--else
78
--# Not enable_shared.
79
--iterator = $(srcdir)/empty.mk $(patsubst %,$(srcdir)/static-object.mk,$(iter-items))
80
--vis_hide =
81
--gen-hide-list = echo > \$@
82
--endif
83
--
84
- ifneq ($(EXTRA_PARTS),)
85
-   extra-parts = libgcc-extra-parts
86
-   INSTALL_PARTS = $(EXTRA_PARTS)

+ 3
- 3
devel/gcc/patches/860-uclibc_use_eh_frame.patch Ver arquivo

@@ -1,5 +1,5 @@
1
---- a/gcc/crtstuff.c
2
-+++ b/gcc/crtstuff.c
1
+--- a/libgcc/crtstuff.c
2
++++ b/libgcc/crtstuff.c
3 3
 @@ -100,15 +100,20 @@ call_ ## FUNC (void)					\
4 4
  #if defined(OBJECT_FORMAT_ELF) \
5 5
      && !defined(OBJECT_FORMAT_FLAT) \
@@ -26,4 +26,4 @@
26 26
 +#  endif
27 27
  # endif
28 28
  #endif
29
- #if defined(EH_FRAME_SECTION_NAME) && !defined(USE_PT_GNU_EH_FRAME)
29
+ 

+ 11
- 20
devel/gcc/patches/870-ppc_no_crtsavres.patch Ver arquivo

@@ -1,20 +1,11 @@
1
---- a/gcc/config/rs6000/sysv4.h
2
-+++ b/gcc/config/rs6000/sysv4.h
3
-@@ -248,13 +248,13 @@ do {									\
4
- 
5
- /* Define cutoff for using external functions to save floating point.
6
-    When optimizing for size, use external functions when profitable.  */
7
--#define FP_SAVE_INLINE(FIRST_REG) (optimize_size			\
8
-+#define FP_SAVE_INLINE(FIRST_REG) (1 || (optimize_size			\
9
- 				   ? ((FIRST_REG) == 62			\
10
- 				      || (FIRST_REG) == 63)		\
11
--				   : (FIRST_REG) < 64)
12
-+				   : (FIRST_REG) < 64))
13
- /* And similarly for general purpose registers.  */
14
--#define GP_SAVE_INLINE(FIRST_REG) ((FIRST_REG) < 32	\
15
--				   && !optimize_size)
16
-+#define GP_SAVE_INLINE(FIRST_REG) (1 || ((FIRST_REG) < 32	\
17
-+				   && !optimize_size))
18
- 
19
- /* Put jump tables in read-only memory, rather than in .text.  */
20
- #define JUMP_TABLES_IN_TEXT_SECTION 0
1
+--- a/gcc/config/rs6000/rs6000.c
2
++++ b/gcc/config/rs6000/rs6000.c
3
+@@ -17653,7 +17653,7 @@ rs6000_savres_strategy (rs6000_stack_t *
4
+   /* Define cutoff for using out-of-line functions to save registers.  */
5
+   if (DEFAULT_ABI == ABI_V4 || TARGET_ELF)
6
+     {
7
+-      if (!optimize_size)
8
++      if (1)
9
+ 	{
10
+ 	  strategy |= SAVE_INLINE_FPRS | REST_INLINE_FPRS;
11
+ 	  strategy |= SAVE_INLINE_GPRS | REST_INLINE_GPRS;

+ 1
- 1
devel/gcc/patches/880-no_java_section.patch Ver arquivo

@@ -1,6 +1,6 @@
1 1
 --- a/gcc/defaults.h
2 2
 +++ b/gcc/defaults.h
3
-@@ -383,7 +383,7 @@ see the files COPYING3 and COPYING.RUNTI
3
+@@ -380,7 +380,7 @@ see the files COPYING3 and COPYING.RUNTI
4 4
  /* If we have named section and we support weak symbols, then use the
5 5
     .jcr section for recording java classes which need to be registered
6 6
     at program start-up time.  */

devel/gcc/patches/900-bad-mips16-crt → devel/gcc/patches/900-bad-mips16-crt.patch Ver arquivo

@@ -1,6 +1,6 @@
1
---- gcc/gcc/config/mips/t-libgcc-mips16~	2013-03-26 09:09:34.209077496 -0400
2
-+++ gcc/gcc/config/mips/t-libgcc-mips16	2013-03-26 18:21:01.717303669 -0400
3
-@@ -43,3 +43,6 @@
1
+--- a/libgcc/config/mips/t-mips16
2
++++ b/libgcc/config/mips/t-mips16
3
+@@ -43,3 +43,6 @@ SYNC_CFLAGS = -mno-mips16
4 4
  
5 5
  # Version these symbols if building libgcc.so.
6 6
  SHLIB_MAPFILES += $(srcdir)/config/mips/libgcc-mips16.ver

+ 23
- 23
devel/gcc/patches/910-mbsd_multi.patch Ver arquivo

@@ -19,27 +19,27 @@
19 19
 
20 20
 --- a/gcc/c-family/c-opts.c
21 21
 +++ b/gcc/c-family/c-opts.c
22
-@@ -103,6 +103,9 @@ static size_t deferred_count;
23
- /* Number of deferred options scanned for -include.  */
24
- static size_t include_cursor;
22
+@@ -104,6 +104,9 @@ static size_t include_cursor;
23
+ /* Whether any standard preincluded header has been preincluded.  */
24
+ static bool done_preinclude;
25 25
  
26 26
 +/* Check if a port honours COPTS.  */
27 27
 +static int honour_copts = 0;
28 28
 +
29 29
  static void handle_OPT_d (const char *);
30 30
  static void set_std_cxx98 (int);
31
- static void set_std_cxx0x (int);
32
-@@ -441,6 +444,9 @@ c_common_handle_option (size_t scode, co
33
-       global_dc->warning_as_error_requested = value;
31
+ static void set_std_cxx11 (int);
32
+@@ -383,6 +386,9 @@ c_common_handle_option (size_t scode, co
33
+       cpp_opts->warn_endif_labels = value;
34 34
        break;
35 35
  
36 36
 +    case OPT_Werror_maybe_reset:
37 37
 +      break;
38 38
 +
39
-     case OPT_Wformat:
40
-       set_Wformat (value);
39
+     case OPT_Winvalid_pch:
40
+       cpp_opts->warn_invalid_pch = value;
41 41
        break;
42
-@@ -584,6 +590,12 @@ c_common_handle_option (size_t scode, co
42
+@@ -491,6 +497,12 @@ c_common_handle_option (size_t scode, co
43 43
        flag_no_builtin = !value;
44 44
        break;
45 45
  
@@ -52,7 +52,7 @@
52 52
      case OPT_fconstant_string_class_:
53 53
        constant_string_class_name = arg;
54 54
        break;
55
-@@ -1058,6 +1070,47 @@ c_common_init (void)
55
+@@ -1027,6 +1039,47 @@ c_common_init (void)
56 56
        return false;
57 57
      }
58 58
  
@@ -102,7 +102,7 @@
102 102
  
103 103
 --- a/gcc/c-family/c.opt
104 104
 +++ b/gcc/c-family/c.opt
105
-@@ -363,6 +363,10 @@ Werror-implicit-function-declaration
105
+@@ -379,6 +379,10 @@ Werror-implicit-function-declaration
106 106
  C ObjC RejectNegative Warning Alias(Werror=, implicit-function-declaration)
107 107
  This switch is deprecated; use -Werror=implicit-function-declaration instead
108 108
  
@@ -113,7 +113,7 @@
113 113
  Wfloat-equal
114 114
  C ObjC C++ ObjC++ Var(warn_float_equal) Warning
115 115
  Warn if testing floating point numbers for equality
116
-@@ -794,6 +798,9 @@ C++ ObjC++ Optimization Alias(fexception
116
+@@ -949,6 +953,9 @@ C++ ObjC++ Optimization Alias(fexception
117 117
  fhonor-std
118 118
  C++ ObjC++ Ignore Warn(switch %qs is no longer supported)
119 119
  
@@ -125,7 +125,7 @@
125 125
  Assume normal C execution environment
126 126
 --- a/gcc/common.opt
127 127
 +++ b/gcc/common.opt
128
-@@ -520,6 +520,10 @@ Werror=
128
+@@ -541,6 +541,10 @@ Werror=
129 129
  Common Joined
130 130
  Treat specified warning as error
131 131
  
@@ -136,7 +136,7 @@
136 136
  Wextra
137 137
  Common Var(extra_warnings) Warning
138 138
  Print extra (possibly unwanted) warnings
139
-@@ -1156,6 +1160,9 @@ fguess-branch-probability
139
+@@ -1242,6 +1246,9 @@ fguess-branch-probability
140 140
  Common Report Var(flag_guess_branch_prob) Optimization
141 141
  Enable guessing of branch probabilities
142 142
  
@@ -148,7 +148,7 @@
148 148
  ; On SVR4 targets, it also controls whether or not to emit a
149 149
 --- a/gcc/opts.c
150 150
 +++ b/gcc/opts.c
151
-@@ -477,8 +477,6 @@ static const struct default_options defa
151
+@@ -468,8 +468,6 @@ static const struct default_options defa
152 152
      { OPT_LEVELS_2_PLUS, OPT_fschedule_insns2, NULL, 1 },
153 153
  #endif
154 154
      { OPT_LEVELS_2_PLUS, OPT_fregmove, NULL, 1 },
@@ -157,8 +157,8 @@
157 157
      { OPT_LEVELS_2_PLUS, OPT_freorder_blocks, NULL, 1 },
158 158
      { OPT_LEVELS_2_PLUS, OPT_freorder_functions, NULL, 1 },
159 159
      { OPT_LEVELS_2_PLUS, OPT_ftree_vrp, NULL, 1 },
160
-@@ -494,6 +492,8 @@ static const struct default_options defa
161
-     { OPT_LEVELS_2_PLUS, OPT_falign_functions, NULL, 1 },
160
+@@ -488,6 +486,8 @@ static const struct default_options defa
161
+     { OPT_LEVELS_2_PLUS, OPT_fhoist_adjacent_loads, NULL, 1 },
162 162
  
163 163
      /* -O3 optimizations.  */
164 164
 +    { OPT_LEVELS_3_PLUS, OPT_fstrict_aliasing, NULL, 1 },
@@ -166,7 +166,7 @@
166 166
      { OPT_LEVELS_3_PLUS, OPT_ftree_loop_distribute_patterns, NULL, 1 },
167 167
      { OPT_LEVELS_3_PLUS, OPT_fpredictive_commoning, NULL, 1 },
168 168
      /* Inlining of functions reducing size is a good idea with -Os
169
-@@ -1405,6 +1405,17 @@ common_handle_option (struct gcc_options
169
+@@ -1423,6 +1423,17 @@ common_handle_option (struct gcc_options
170 170
  			       opts, opts_set, loc, dc);
171 171
        break;
172 172
  
@@ -186,7 +186,7 @@
186 186
        opts->x_warn_larger_than = value != -1;
187 187
 --- a/gcc/doc/cppopts.texi
188 188
 +++ b/gcc/doc/cppopts.texi
189
-@@ -164,6 +164,11 @@ in older programs.  This warning is on b
189
+@@ -163,6 +163,11 @@ in older programs.  This warning is on b
190 190
  Make all warnings into hard errors.  Source code which triggers warnings
191 191
  will be rejected.
192 192
  
@@ -209,8 +209,8 @@
209 209
  -Wfatal-errors  -Wfloat-equal  -Wformat  -Wformat=2 @gol
210 210
  -Wno-format-contains-nul -Wno-format-extra-args -Wformat-nonliteral @gol
211 211
  -Wformat-security  -Wformat-y2k @gol
212
-@@ -4498,6 +4498,22 @@ This option is only supported for C and
213
- @option{-Wall} and by @option{-pedantic}, which can be disabled with
212
+@@ -4808,6 +4808,22 @@ This option is only supported for C and
213
+ @option{-Wall} and by @option{-Wpedantic}, which can be disabled with
214 214
  @option{-Wno-pointer-sign}.
215 215
  
216 216
 + at item -Werror-maybe-reset
@@ -232,7 +232,7 @@
232 232
  @item -Wstack-protector
233 233
  @opindex Wstack-protector
234 234
  @opindex Wno-stack-protector
235
-@@ -6317,7 +6333,7 @@ so, the first branch is redirected to ei
235
+@@ -6919,7 +6935,7 @@ so, the first branch is redirected to ei
236 236
  second branch or a point immediately following it, depending on whether
237 237
  the condition is known to be true or false.
238 238
  
@@ -243,7 +243,7 @@
243 243
  @opindex fsplit-wide-types
244 244
 --- a/gcc/java/jvspec.c
245 245
 +++ b/gcc/java/jvspec.c
246
-@@ -627,6 +627,7 @@ lang_specific_pre_link (void)
246
+@@ -626,6 +626,7 @@ lang_specific_pre_link (void)
247 247
       class name.  Append dummy `.c' that can be stripped by set_input so %b
248 248
       is correct.  */ 
249 249
    set_input (concat (main_class_name, "main.c", NULL));

+ 1
- 1
devel/gcc/patches/920-specs_nonfatal_getenv.patch Ver arquivo

@@ -1,6 +1,6 @@
1 1
 --- a/gcc/gcc.c
2 2
 +++ b/gcc/gcc.c
3
-@@ -7772,7 +7772,10 @@ getenv_spec_function (int argc, const ch
3
+@@ -8003,7 +8003,10 @@ getenv_spec_function (int argc, const ch
4 4
  
5 5
    value = getenv (argv[0]);
6 6
    if (!value)

+ 0
- 11
devel/gcc/patches/999-coldfire.patch Ver arquivo

@@ -1,11 +0,0 @@
1
---- a/gcc/config.gcc
2
-+++ b/gcc/config.gcc
3
-@@ -1805,7 +1805,7 @@ m68k-*-linux*)		# Motorola m68k's runnin
4
- 	default_m68k_cpu=68020
5
- 	default_cf_cpu=5475
6
- 	with_arch=${with_arch:-m68k}
7
--	tm_file="${tm_file} dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h m68k/linux.h ./sysroot-suffix.h"
8
-+	tm_file="${tm_file} dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h m68k/linux.h"
9
- 	extra_options="${extra_options} m68k/ieee.opt"
10
- 	tm_defines="${tm_defines} MOTOROLA=1"
11
- 	tmake_file="${tmake_file} m68k/t-floatlib m68k/t-linux m68k/t-mlibs"