summaryrefslogtreecommitdiff
path: root/debian/patches/mips-fix-loongson2f-nop.diff
blob: 215eaf88ef3bbd1eeceda54665735634451ef669 (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
@@ -1343,6 +1343,7 @@ struct mips_cpu_info {
 %{msym32} %{mno-sym32} \
 %{mtune=*}" \
 FP_ASM_SPEC "\
+%{!mno-fix-loongson2f-nop:-mfix-loongson2f-nop} \
 %(subtarget_asm_spec)"
 
 /* Extra switches sometimes passed to the linker.  */