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]

[patch] Provide a default definition for REVERSIBLE_CC_MODE.


Hi,

Attached is a patch to provide a default definition for
REVERSIBLE_CC_MODE.

Bootstrapped on i686-pc-linux-gnu and built h8300-elf.

Committed as obvious.

Kazu Hirata

2004-03-15  Kazu Hirata  <kazu@cs.umass.edu>

	* defaults.h (REVERSIBLE_CC_MODE): Define.
	* jump.c (reversed_comparison_code_parts): Don't check if
	REVERSIBLE_CC_MODE is defined.

Index: defaults.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/defaults.h,v
retrieving revision 1.131
diff -u -r1.131 defaults.h
--- defaults.h	12 Mar 2004 17:08:56 -0000	1.131
+++ defaults.h	15 Mar 2004 18:46:10 -0000
@@ -737,4 +737,8 @@
 #define LEGITIMIZE_ADDRESS(X, OLDX, MODE, WIN)
 #endif
 
+#ifndef REVERSIBLE_CC_MODE
+#define REVERSIBLE_CC_MODE(MODE) 0
+#endif
+
 #endif  /* ! GCC_DEFAULTS_H */
Index: jump.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/jump.c,v
retrieving revision 1.241
diff -u -r1.241 jump.c
--- jump.c	3 Mar 2004 08:34:28 -0000	1.241
+++ jump.c	15 Mar 2004 18:46:12 -0000
@@ -648,7 +648,6 @@
   /* First see if machine description supply us way to reverse the comparison.
      Give it priority over everything else to allow machine description to do
      tricks.  */
-#ifdef REVERSIBLE_CC_MODE
   if (GET_MODE_CLASS (mode) == MODE_CC
       && REVERSIBLE_CC_MODE (mode))
     {
@@ -657,7 +656,6 @@
 #endif
       return reverse_condition (code);
     }
-#endif
 
   /* Try a few special cases based on the comparison code.  */
   switch (code)


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