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]

[3.1 branch] allow bootstrap on m68k-linux


This patch from the mainline is needed to boostrap gcc-3.1 on
m68k-linux, else it will fail with a bootstrap comparision failure.

2002-06-11  Andreas Schwab  <schwab@suse.de>

	    * config/m68k/m68k.h (PREDICATE_CODES): Define.


http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/m68k/m68k.h.diff?r1=1.48.2.3&r2=1.48.2.4

===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/m68k/m68k.h,v
retrieving revision 1.72
retrieving revision 1.73
diff -u -r1.72 -r1.73
--- gcc/gcc/config/m68k/m68k.h	2002/05/19 05:23:13	1.72
+++ gcc/gcc/config/m68k/m68k.h	2002/06/11 08:52:24	1.73
@@ -1943,6 +1943,21 @@
 extern int m68k_last_compare_had_fp_operands;
 
 
+/* Define the codes that are matched by predicates in m68k.c.  */
+
+#define PREDICATE_CODES							\
+  {"general_src_operand", {CONST_INT, CONST_DOUBLE, CONST, SYMBOL_REF,		\
+				          LABEL_REF, SUBREG, REG, MEM}},		\
+  {"nonimmediate_src_operand", {SUBREG, REG, MEM}},		  \
+  {"memory_src_operand", {SUBREG, MEM}},					\
+  {"not_sp_operand", {SUBREG, REG, MEM}},								\
+  {"pcrel_address", {SYMBOL_REF, LABEL_REF, CONST}},									\
+  {"const_uint32_operand", {CONST_INT, CONST_DOUBLE}},									  \
+  {"const_sint32_operand", {CONST_INT}},										     \
+  {"valid_dbcc_comparison_p", {EQ, NE, GTU, LTU, GEU, LEU,								      \
+				           GT, LT, GE, LE}},								        \
+  {"extend_operator", {SIGN_EXTEND, ZERO_EXTEND}},
+
 /*
 Local variables:
 version-control: t


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