~angelsl/ubuntu/wily/gcc-5/mips-cross

« back to all changes in this revision

Viewing changes to debian/patches/powerpc_remove_many.diff

  • Committer: angelsl
  • Date: 2015-10-30 03:30:35 UTC
  • Revision ID: angelsl-20151030033035-rmug41zm8hyjgisg
Original import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# DP: Subject: [PATCH] remove -many on __SPE__ target
 
2
# DP: this helps to to detect opcodes which are not part of the current
 
3
# DP: CPU because without -many gas won't touch them. This currently could
 
4
# DP: break the kernel build as the 603 on steroids cpus use performance
 
5
# DP: counter opcodes which are not available on the steroid less 603 core.
 
6
 
 
7
--- a/src/gcc/config/rs6000/rs6000.h
 
8
+++ b/src/gcc/config/rs6000/rs6000.h
 
9
@@ -98,6 +98,12 @@
 
10
 #define ASM_CPU_476_SPEC "-mpower4"
 
11
 #endif
 
12
 
 
13
+#ifndef __SPE__
 
14
+#define ASM_CPU_SPU_MANY_NOT_SPE "-many"
 
15
+#else
 
16
+#define ASM_CPU_SPU_MANY_NOT_SPE
 
17
+#endif
 
18
+
 
19
 /* Common ASM definitions used by ASM_SPEC among the various targets for
 
20
    handling -mcpu=xxx switches.  There is a parallel list in driver-rs6000.c to
 
21
    provide the default assembler options if the user uses -mcpu=native, so if
 
22
@@ -170,7 +176,8 @@
 
23
 %{mcpu=e500mc64: -me500mc64} \
 
24
 %{maltivec: -maltivec} \
 
25
 %{mvsx: -mvsx %{!maltivec: -maltivec} %{!mcpu*: %(asm_cpu_power7)}} \
 
26
 %{mpower8-vector|mcrypto|mdirect-move|mhtm: %{!mcpu*: %(asm_cpu_power8)}} \
 
27
--many"
 
28
+" \
 
29
+ASM_CPU_SPU_MANY_NOT_SPE
 
30
 
 
31
 #define CPP_DEFAULT_SPEC ""
 
32