summaryrefslogtreecommitdiffstats
path: root/meta/packages/gcc/gcc-4.3.3/gcc-4.0.2-e300c2c3.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/packages/gcc/gcc-4.3.3/gcc-4.0.2-e300c2c3.patch')
-rw-r--r--meta/packages/gcc/gcc-4.3.3/gcc-4.0.2-e300c2c3.patch82
1 files changed, 45 insertions, 37 deletions
diff --git a/meta/packages/gcc/gcc-4.3.3/gcc-4.0.2-e300c2c3.patch b/meta/packages/gcc/gcc-4.3.3/gcc-4.0.2-e300c2c3.patch
index 736ac4b6b6..d1df8b2716 100644
--- a/meta/packages/gcc/gcc-4.3.3/gcc-4.0.2-e300c2c3.patch
+++ b/meta/packages/gcc/gcc-4.3.3/gcc-4.0.2-e300c2c3.patch
@@ -3,10 +3,18 @@ http://www.bitshrine.org/gpp/tc-fsl-x86lnx-e300c3-nptl-4.0.2-2.src.rpm
3 3
4Leon Woestenberg <leonw@mailcan.com> 4Leon Woestenberg <leonw@mailcan.com>
5 5
6Index: gcc-4.1.2/gcc/config/rs6000/e300c2c3.md 6---
7 gcc/config.gcc | 2
8 gcc/config/rs6000/e300c2c3.md | 189 ++++++++++++++++++++++++++++++++++++++++++
9 gcc/config/rs6000/rs6000.c | 24 +++++
10 gcc/config/rs6000/rs6000.h | 4
11 gcc/config/rs6000/rs6000.md | 3
12 5 files changed, 220 insertions(+), 2 deletions(-)
13
14Index: gcc-4.3.1/gcc/config/rs6000/e300c2c3.md
7=================================================================== 15===================================================================
8--- /dev/null 1970-01-01 00:00:00.000000000 +0000 16--- /dev/null 1970-01-01 00:00:00.000000000 +0000
9+++ gcc-4.1.2/gcc/config/rs6000/e300c2c3.md 2007-10-18 15:32:51.000000000 +0200 17+++ gcc-4.3.1/gcc/config/rs6000/e300c2c3.md 2008-08-23 16:51:33.000000000 -0700
10@@ -0,0 +1,189 @@ 18@@ -0,0 +1,189 @@
11+;; Pipeline description for Motorola PowerPC e300c3 core. 19+;; Pipeline description for Motorola PowerPC e300c3 core.
12+;; Copyright (C) 2003 Free Software Foundation, Inc. 20+;; Copyright (C) 2003 Free Software Foundation, Inc.
@@ -197,12 +205,12 @@ Index: gcc-4.1.2/gcc/config/rs6000/e300c2c3.md
197+ (and (eq_attr "type" "fpstore,fpstore_ux,fpstore_u") 205+ (and (eq_attr "type" "fpstore,fpstore_ux,fpstore_u")
198+ (eq_attr "cpu" "ppce300c3")) 206+ (eq_attr "cpu" "ppce300c3"))
199+ "ppce300c3_decode,ppce300c3_issue+ppce300c3_lsu,ppce300c3_retire") 207+ "ppce300c3_decode,ppce300c3_issue+ppce300c3_lsu,ppce300c3_retire")
200Index: gcc-4.1.2/gcc/config/rs6000/rs6000.c 208Index: gcc-4.3.1/gcc/config/rs6000/rs6000.c
201=================================================================== 209===================================================================
202--- gcc-4.1.2.orig/gcc/config/rs6000/rs6000.c 2006-12-16 20:24:56.000000000 +0100 210--- gcc-4.3.1.orig/gcc/config/rs6000/rs6000.c 2008-08-23 16:49:39.000000000 -0700
203+++ gcc-4.1.2/gcc/config/rs6000/rs6000.c 2007-10-18 15:34:26.000000000 +0200 211+++ gcc-4.3.1/gcc/config/rs6000/rs6000.c 2008-08-23 16:54:25.000000000 -0700
204@@ -557,6 +557,21 @@ 212@@ -669,6 +669,21 @@ struct processor_costs ppc8540_cost = {
205 COSTS_N_INSNS (29), /* ddiv */ 213 1, /* prefetch streams /*/
206 }; 214 };
207 215
208+/* Instruction costs on E300C2 and E300C3 cores. */ 216+/* Instruction costs on E300C2 and E300C3 cores. */
@@ -223,16 +231,16 @@ Index: gcc-4.1.2/gcc/config/rs6000/rs6000.c
223 /* Instruction costs on POWER4 and POWER5 processors. */ 231 /* Instruction costs on POWER4 and POWER5 processors. */
224 static const 232 static const
225 struct processor_costs power4_cost = { 233 struct processor_costs power4_cost = {
226@@ -1140,6 +1155,8 @@ 234@@ -1420,6 +1435,8 @@ rs6000_override_options (const char *def
235 {"8540", PROCESSOR_PPC8540, POWERPC_BASE_MASK | MASK_STRICT_ALIGN},
227 /* 8548 has a dummy entry for now. */ 236 /* 8548 has a dummy entry for now. */
228 {"8548", PROCESSOR_PPC8540, 237 {"8548", PROCESSOR_PPC8540, POWERPC_BASE_MASK | MASK_STRICT_ALIGN},
229 POWERPC_BASE_MASK | MASK_PPC_GFXOPT | MASK_STRICT_ALIGN}, 238+ {"e300c2", PROCESSOR_PPCE300C2, POWERPC_BASE_MASK | MASK_SOFT_FLOAT},
230+ {"e300c2", PROCESSOR_PPCE300C2, POWERPC_BASE_MASK | MASK_SOFT_FLOAT}, 239+ {"e300c3", PROCESSOR_PPCE300C3, POWERPC_BASE_MASK},
231+ {"e300c3", PROCESSOR_PPCE300C3, POWERPC_BASE_MASK},
232 {"860", PROCESSOR_MPCCORE, POWERPC_BASE_MASK | MASK_SOFT_FLOAT}, 240 {"860", PROCESSOR_MPCCORE, POWERPC_BASE_MASK | MASK_SOFT_FLOAT},
233 {"970", PROCESSOR_POWER4, 241 {"970", PROCESSOR_POWER4,
234 POWERPC_7400_MASK | MASK_PPC_GPOPT | MASK_MFCRF | MASK_POWERPC64}, 242 POWERPC_7400_MASK | MASK_PPC_GPOPT | MASK_MFCRF | MASK_POWERPC64},
235@@ -1529,6 +1546,11 @@ 243@@ -1845,6 +1862,11 @@ rs6000_override_options (const char *def
236 rs6000_cost = &ppc8540_cost; 244 rs6000_cost = &ppc8540_cost;
237 break; 245 break;
238 246
@@ -244,68 +252,68 @@ Index: gcc-4.1.2/gcc/config/rs6000/rs6000.c
244 case PROCESSOR_POWER4: 252 case PROCESSOR_POWER4:
245 case PROCESSOR_POWER5: 253 case PROCESSOR_POWER5:
246 rs6000_cost = &power4_cost; 254 rs6000_cost = &power4_cost;
247@@ -16647,6 +16669,8 @@ 255@@ -18606,6 +18628,8 @@ rs6000_issue_rate (void)
248 case CPU_PPC750:
249 case CPU_PPC7400: 256 case CPU_PPC7400:
250 case CPU_PPC8540: 257 case CPU_PPC8540:
258 case CPU_CELL:
251+ case CPU_PPCE300C2: 259+ case CPU_PPCE300C2:
252+ case CPU_PPCE300C3: 260+ case CPU_PPCE300C3:
253 return 2; 261 return 2;
254 case CPU_RIOS2: 262 case CPU_RIOS2:
255 case CPU_PPC604: 263 case CPU_PPC604:
256Index: gcc-4.1.2/gcc/config/rs6000/rs6000.h 264Index: gcc-4.3.1/gcc/config/rs6000/rs6000.h
257=================================================================== 265===================================================================
258--- gcc-4.1.2.orig/gcc/config/rs6000/rs6000.h 2006-11-18 01:25:49.000000000 +0100 266--- gcc-4.3.1.orig/gcc/config/rs6000/rs6000.h 2008-01-26 09:18:35.000000000 -0800
259+++ gcc-4.1.2/gcc/config/rs6000/rs6000.h 2007-10-18 15:32:51.000000000 +0200 267+++ gcc-4.3.1/gcc/config/rs6000/rs6000.h 2008-08-23 16:55:30.000000000 -0700
260@@ -111,6 +111,8 @@ 268@@ -117,6 +117,8 @@
261 %{mcpu=970: -mpower4 -maltivec} \
262 %{mcpu=G5: -mpower4 -maltivec} \ 269 %{mcpu=G5: -mpower4 -maltivec} \
263 %{mcpu=8540: -me500} \ 270 %{mcpu=8540: -me500} \
271 %{mcpu=8548: -me500} \
264+%{mcpu=e300c2: -mppc} \ 272+%{mcpu=e300c2: -mppc} \
265+%{mcpu=e300c3: -mppc -mpmr} \ 273+%{mcpu=e300c3: -mppc -mpmr} \
266 %{maltivec: -maltivec} \ 274 %{maltivec: -maltivec} \
267 -many" 275 -many"
268 276
269@@ -211,6 +213,8 @@ 277@@ -262,6 +264,8 @@ enum processor_type
270 PROCESSOR_PPC7400, 278 PROCESSOR_PPC7400,
271 PROCESSOR_PPC7450, 279 PROCESSOR_PPC7450,
272 PROCESSOR_PPC8540, 280 PROCESSOR_PPC8540,
273+ PROCESSOR_PPCE300C2, 281+ PROCESSOR_PPCE300C2,
274+ PROCESSOR_PPCE300C3, 282+ PROCESSOR_PPCE300C3,
275 PROCESSOR_POWER4, 283 PROCESSOR_POWER4,
276 PROCESSOR_POWER5 284 PROCESSOR_POWER5,
277 }; 285 PROCESSOR_POWER6,
278Index: gcc-4.1.2/gcc/config/rs6000/rs6000.md 286Index: gcc-4.3.1/gcc/config/rs6000/rs6000.md
279=================================================================== 287===================================================================
280--- gcc-4.1.2.orig/gcc/config/rs6000/rs6000.md 2006-12-16 20:24:56.000000000 +0100 288--- gcc-4.3.1.orig/gcc/config/rs6000/rs6000.md 2008-02-13 16:14:45.000000000 -0800
281+++ gcc-4.1.2/gcc/config/rs6000/rs6000.md 2007-10-18 15:32:51.000000000 +0200 289+++ gcc-4.3.1/gcc/config/rs6000/rs6000.md 2008-08-23 16:57:29.000000000 -0700
282@@ -103,7 +103,7 @@ 290@@ -133,7 +133,7 @@
283 ;; Processor type -- this attribute must exactly match the processor_type 291 ;; Processor type -- this attribute must exactly match the processor_type
284 ;; enumeration in rs6000.h. 292 ;; enumeration in rs6000.h.
285 293
286-(define_attr "cpu" "rios1,rios2,rs64a,mpccore,ppc403,ppc405,ppc440,ppc601,ppc603,ppc604,ppc604e,ppc620,ppc630,ppc750,ppc7400,ppc7450,ppc8540,power4,power5" 294-(define_attr "cpu" "rios1,rios2,rs64a,mpccore,ppc403,ppc405,ppc440,ppc601,ppc603,ppc604,ppc604e,ppc620,ppc630,ppc750,ppc7400,ppc7450,ppc8540,power4,power5,power6,cell"
287+(define_attr "cpu" "rios1,rios2,rs64a,mpccore,ppc403,ppc405,ppc440,ppc601,ppc603,ppc604,ppc604e,ppc620,ppc630,ppc750,ppc7400,ppc7450,ppc8540,ppce300c2,ppce300c3,power4,power5" 295+(define_attr "cpu" "rios1,rios2,rs64a,mpccore,ppc403,ppc405,ppc440,ppc601,ppc603,ppc604,ppc604e,ppc620,ppc630,ppc750,ppc7400,ppc7450,ppc8540,power4,power5,power6,cell,ppce300c2,ppce300c3"
288 (const (symbol_ref "rs6000_cpu_attr"))) 296 (const (symbol_ref "rs6000_cpu_attr")))
289 297
290 (automata_option "ndfa") 298
291@@ -119,6 +119,7 @@ 299@@ -166,6 +166,7 @@
292 (include "7xx.md") 300 (include "7xx.md")
293 (include "7450.md") 301 (include "7450.md")
294 (include "8540.md") 302 (include "8540.md")
295+(include "e300c2c3.md") 303+(include "e300c2c3.md")
296 (include "power4.md") 304 (include "power4.md")
297 (include "power5.md") 305 (include "power5.md")
298 306 (include "power6.md")
299Index: gcc-4.1.2/gcc/config.gcc 307Index: gcc-4.3.1/gcc/config.gcc
300=================================================================== 308===================================================================
301--- gcc-4.1.2.orig/gcc/config.gcc 2007-10-18 15:26:23.000000000 +0200 309--- gcc-4.3.1.orig/gcc/config.gcc 2008-08-23 16:49:43.000000000 -0700
302+++ gcc-4.1.2/gcc/config.gcc 2007-10-18 15:32:51.000000000 +0200 310+++ gcc-4.3.1/gcc/config.gcc 2008-08-23 17:03:55.000000000 -0700
303@@ -2710,7 +2710,7 @@ 311@@ -3144,7 +3144,7 @@ case "${target}" in
304 | rios | rios1 | rios2 | rsc | rsc1 | rs64a \ 312 | rios | rios1 | rios2 | rsc | rsc1 | rs64a \
305 | 401 | 403 | 405 | 405fp | 440 | 440fp | 505 \ 313 | 401 | 403 | 405 | 405fp | 440 | 440fp | 505 \
306 | 601 | 602 | 603 | 603e | ec603e | 604 \ 314 | 601 | 602 | 603 | 603e | ec603e | 604 \
307- | 604e | 620 | 630 | 740 | 750 | 7400 | 7450 \ 315- | 604e | 620 | 630 | 740 | 750 | 7400 | 7450 \
308+ | 604e | 620 | 630 | 740 | 750 | 7400 | 7450 | e300c[23] \ 316+ | 604e | 620 | 630 | 740 | 750 | 7400 | 7450 | e300c[23] \
309 | 854[08] | 801 | 821 | 823 | 860 | 970 | G3 | G4 | G5) 317 | 854[08] | 801 | 821 | 823 | 860 | 970 | G3 | G4 | G5 | cell)
310 # OK 318 # OK
311 ;; 319 ;;