1 --- a/gcc/config/mips/linux.h
2 +++ b/gcc/config/mips/linux.h
3 @@ -75,8 +75,7 @@ along with GCC; see the file COPYING3.
6 #undef SUBTARGET_ASM_SPEC
7 -#define SUBTARGET_ASM_SPEC \
8 - "%{mabi=64: -64} %{mabicalls:%{fpic|fPIC|fpie|fPIE:-KPIC;:-mnon-pic-abicalls}}"
9 +#define SUBTARGET_ASM_SPEC "%{mabi=64: -64} %{!mno-abicalls:-KPIC}"
11 /* The MIPS assembler has different syntax for .set. We set it to
12 .dummy to trap any errors. */
13 --- a/gcc/config/mips/linux64.h
14 +++ b/gcc/config/mips/linux64.h
15 @@ -28,7 +28,7 @@ NO_SHARED_SPECS \
17 #undef SUBTARGET_ASM_SPEC
18 #define SUBTARGET_ASM_SPEC "\
19 -%{mabicalls:%{fpic|fPIC|fpie|fPIE:-KPIC;:-mnon-pic-abicalls}} \
20 +%{!fno-PIC:%{!fno-pic:-KPIC}} \
21 %{fno-PIC:-non_shared} %{fno-pic:-non_shared}"