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

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