diff options
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-4.6/gcc.no_power_builtins.patch')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-4.6/gcc.no_power_builtins.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-4.6/gcc.no_power_builtins.patch b/meta/recipes-devtools/gcc/gcc-4.6/gcc.no_power_builtins.patch new file mode 100644 index 0000000000..3f69f29ace --- /dev/null +++ b/meta/recipes-devtools/gcc/gcc-4.6/gcc.no_power_builtins.patch | |||
@@ -0,0 +1,30 @@ | |||
1 | Upstream-Status: Pending | ||
2 | |||
3 | People are working to include this fixes upstream | ||
4 | |||
5 | --- gcc-4.6.3/gcc/config/rs6000/rs6000-c.c-orig 2012-07-10 12:16:59.708254001 -0500 | ||
6 | +++ gcc-4.6.3/gcc/config/rs6000/rs6000-c.c 2012-07-10 12:18:58.625254001 -0500 | ||
7 | @@ -272,19 +272,19 @@ | ||
8 | builtin_define ("_ARCH_PPCGR"); | ||
9 | if (TARGET_POWERPC64) | ||
10 | builtin_define ("_ARCH_PPC64"); | ||
11 | - if (TARGET_MFCRF) | ||
12 | + if (TARGET_MFCRF && rs6000_cpu != PROCESSOR_PPCE6500) | ||
13 | builtin_define ("_ARCH_PWR4"); | ||
14 | - if (TARGET_POPCNTB) | ||
15 | + if (TARGET_POPCNTB && rs6000_cpu != PROCESSOR_PPCE5500 && rs6000_cpu != PROCESSOR_PPCE6500) | ||
16 | builtin_define ("_ARCH_PWR5"); | ||
17 | if (TARGET_FPRND) | ||
18 | builtin_define ("_ARCH_PWR5X"); | ||
19 | - if (TARGET_CMPB) | ||
20 | + if (TARGET_CMPB && rs6000_cpu != PROCESSOR_PPCE5500 && rs6000_cpu != PROCESSOR_PPCE6500) | ||
21 | builtin_define ("_ARCH_PWR6"); | ||
22 | if (TARGET_MFPGPR) | ||
23 | builtin_define ("_ARCH_PWR6X"); | ||
24 | if (! TARGET_POWER && ! TARGET_POWER2 && ! TARGET_POWERPC) | ||
25 | builtin_define ("_ARCH_COM"); | ||
26 | - if (TARGET_POPCNTD) | ||
27 | + if (TARGET_POPCNTD && rs6000_cpu != PROCESSOR_PPCE5500 && rs6000_cpu != PROCESSOR_PPCE6500) | ||
28 | builtin_define ("_ARCH_PWR7"); | ||
29 | if (TARGET_ALTIVEC) | ||
30 | { | ||