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