summaryrefslogtreecommitdiff
path: root/debian/patches/mips-fix-loongson2f-nop.diff
blob: 953c02e9f1477e8958c9194e9a55f25095565527 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# DP: On mips, pass -mfix-loongson2f-nop to as, if -mno-fix-loongson2f-nop
# DP: is not passed.

Index: b/src/gcc/config/mips/mips.h
===================================================================
--- a/src/gcc/config/mips/mips.h
+++ b/src/gcc/config/mips/mips.h
@@ -1193,6 +1193,7 @@ struct mips_cpu_info {
 %{mshared} %{mno-shared} \
 %{msym32} %{mno-sym32} \
 %{mtune=*} \
+%{!mno-fix-loongson2f-nop:-mfix-loongson2f-nop} \
 %(subtarget_asm_spec)"
 
 /* Extra switches sometimes passed to the linker.  */