diff options
Diffstat (limited to 'gcc/config.gcc')
-rw-r--r-- | gcc/config.gcc | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/gcc/config.gcc b/gcc/config.gcc index 3db8fcfb7f6..fb2a0176d7e 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -2779,7 +2779,7 @@ case "${target}" in ;; mips*-*-*) - supported_defaults="abi arch float tune divide llsc" + supported_defaults="abi arch float tune divide llsc mips-plt" case ${with_float} in "" | soft | hard) @@ -2826,6 +2826,21 @@ case "${target}" in exit 1 ;; esac + + case ${with_mips_plt} in + yes) + with_mips_plt=plt + ;; + no) + with_mips_plt=no-plt + ;; + "") + ;; + *) + echo "Unknown --with-mips-plt argument: $with_mips_plt" 1>&2 + exit 1 + ;; + esac ;; powerpc*-*-* | rs6000-*-*) @@ -3078,10 +3093,10 @@ case ${target} in esac t= -all_defaults="abi cpu cpu_32 cpu_64 arch arch_32 arch_64 tune tune_32 tune_64 schedule float mode fpu divide llsc" +all_defaults="abi cpu cpu_32 cpu_64 arch arch_32 arch_64 tune tune_32 tune_64 schedule float mode fpu divide llsc mips-plt" for option in $all_defaults do - eval "val=\$with_$option" + eval "val=\$with_"`echo $option | sed s/-/_/g` if test -n "$val"; then case " $supported_defaults " in *" $option "*) |