This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[committed] mipsisa*-linux-gnu tweaks


This patch does two things:

  - Remove MASK_SOFT_FLOAT for mipsisa32-linux-gnu.  Forcing soft float
    here was very anachronistic, and we don't do it for any other
    mipsisa* configuration.  It's now possible to use --with-float=soft
    or --with-float=hard to explicitly specify which setting you want.

  - Add mipsisa32r2-linux-gnu.  At the moment, mipsisa32r2-linux-gnu
    selects mip32r1 code, which is rather confusing.

Tested on mipsisa32r2-linux-gnu.  Applied to mainline.

Richard


2007-09-14  Nigel Stephens  <nigel@mips.com>

	* config.gcc (mips*-*-linux*): Recognise mipsisa32r2 and set
	MIPS_ISA_DEFAULT appropriately.  Don't make soft-float the default
	for mipsisa32-*-linux*.

Index: gcc/config.gcc
===================================================================
--- gcc/config.gcc	(revision 128495)
+++ gcc/config.gcc	(working copy)
@@ -1668,10 +1668,11 @@ 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="${tm_defines} MIPS_ISA_DEFAULT=32"
+        mipsisa32r2*)
+		tm_defines="${tm_defines} MIPS_ISA_DEFAULT=33"
                 ;;
+        mipsisa32*)
+		tm_defines="${tm_defines} MIPS_ISA_DEFAULT=32"
         esac
 	test x$with_llsc != x || with_llsc=yes
 	;;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]