This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
revised patch was Re: [PATCH] configure mips*-linux and soft-float...
Eric Christopher wrote:
I forget to say that without this patch --with-float= seems to have no
effect on the built compiler.
You should fix it later in the file where with_float is handled.
New version of the patch. Tested as before.
OK to install?
David Daney.
2003-11-07 David Daney <ddaney@avtrex.com>
* config.gcc (mipsisa32*-linux*): Remove MASK_SOFT_FLOAT.
(mips*-*-*): set MASK_SOFT_FLOAT if --with-float=soft.
Index: config.gcc
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config.gcc,v
retrieving revision 1.406
diff -4 -u -p -r1.406 config.gcc
--- config.gcc 3 Nov 2003 21:44:07 -0000 1.406
+++ config.gcc 7 Nov 2003 22:02:15 -0000
@@ -1497,9 +1497,8 @@ mips64*-*-linux*)
mips*-*-linux*) # Linux MIPS, either endian.
tm_file="dbxelf.h elfos.h svr4.h linux.h ${tm_file} mips/linux.h"
case ${target} in
mipsisa32*-*)
- target_cpu_default="MASK_SOFT_FLOAT"
tm_defines="MIPS_ISA_DEFAULT=32"
;;
esac
tmake_file="t-slibgcc-elf-ver t-linux"
@@ -2649,8 +2648,17 @@ fi
tm_defines="US_SOFTWARE_GOFAST $tm_defines"
tmake_file="mips/t-gofast $tmake_file"
else
tmake_file="mips/t-mips $tmake_file"
+ fi
+ if test x$with_float = xsoft
+ then
+ if test "$target_cpu_default2" != ""
+ then
+ target_cpu_default2="${target_cpu_default2}|MASK_SOFT_FLOAT"
+ else
+ target_cpu_default2="MASK_SOFT_FLOAT"
+ fi
fi
;;
powerpc*-*-* | rs6000-*-*)