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]

PATCH: Fix thinkos in mips


I made a few thinkos and a typo when I was changing the mips port.  I
would think this would be obvious but I'm going to ask first this time :)

-eric

-- 
I will not grease the monkey bars

2001-07-13  Eric Christopher  <echristo@redhat.com>

	* config/mips/mips.h: Change TUNE_MIPS* options to use
	mips_tune.
	(EXTRA_SPECS): Add cc1_cpu_spec.
	* config/mips/mips.md (muldf3): Fix typo.

Index: config/mips/mips.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/mips/mips.h,v
retrieving revision 1.117
diff -u -p -w -r1.117 mips.h
--- mips.h	2001/07/09 06:10:03	1.117
+++ mips.h	2001/07/17 10:02:38
@@ -337,11 +337,11 @@ extern void		sbss_section PARAMS ((void)
 #define TARGET_MIPS4300             (mips_arch == PROCESSOR_R4300)
 
 /* Scheduling target defines.  */
-#define TUNE_MIPS3000               (mips_cpu == PROCESSOR_R3000)
-#define TUNE_MIPS3900               (mips_cpu == PROCESSOR_R3900)
-#define TUNE_MIPS4000               (mips_cpu == PROCESSOR_R4000)
-#define TUNE_MIPS5000               (mips_cpu == PROCESSOR_R5000)
-#define TUNE_MIPS6000               (mips_cpu == PROCESSOR_R6000)
+#define TUNE_MIPS3000               (mips_tune == PROCESSOR_R3000)
+#define TUNE_MIPS3900               (mips_tune == PROCESSOR_R3900)
+#define TUNE_MIPS4000               (mips_tune == PROCESSOR_R4000)
+#define TUNE_MIPS5000               (mips_tune == PROCESSOR_R5000)
+#define TUNE_MIPS6000               (mips_tune == PROCESSOR_R6000)
 
 /* Macro to define tables used to set the flags.
    This is a list in braces of pairs in braces,
@@ -1027,6 +1027,7 @@ while (0)
 
 #define EXTRA_SPECS							\
   { "subtarget_cc1_spec", SUBTARGET_CC1_SPEC },				\
+  { "cc1_cpu_spec", CC1_CPU_SPEC},                                      \
   { "subtarget_cpp_spec", SUBTARGET_CPP_SPEC },				\
   { "subtarget_cpp_size_spec", SUBTARGET_CPP_SIZE_SPEC },		\
   { "long_max_spec", LONG_MAX_SPEC },					\
Index: config/mips/mips.md
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/mips/mips.md,v
retrieving revision 1.100
diff -u -p -w -r1.100 mips.md
--- mips.md	2001/07/11 09:29:42	1.100
+++ mips.md	2001/07/17 10:02:40
@@ -1626,7 +1626,7 @@
   "TARGET_HARD_FLOAT && TARGET_DOUBLE_FLOAT"
   "
 {
-  if (TARGET_MIPS4300)
+  if (!TARGET_MIPS4300)
     emit_insn (gen_muldf3_internal (operands[0], operands[1], operands[2]));
   else
     emit_insn (gen_muldf3_r4300 (operands[0], operands[1], operands[2]));


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