defaults.h (REVERSIBLE_CC_MODE): Define.
authorKazu Hirata <kazu@cs.umass.edu>
Mon, 15 Mar 2004 18:51:53 +0000 (18:51 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Mon, 15 Mar 2004 18:51:53 +0000 (18:51 +0000)
* defaults.h (REVERSIBLE_CC_MODE): Define.
* jump.c (reversed_comparison_code_parts): Don't check if
REVERSIBLE_CC_MODE is defined.

From-SVN: r79507

gcc/ChangeLog
gcc/defaults.h
gcc/jump.c

index 76b27928e714394e5cfabbf8846ceee0cbac10b2..0437bfdc785dfe4c73d7a4fda84913fa05de5950 100644 (file)
@@ -1,3 +1,9 @@
+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.
+
 2004-03-15  Kazu Hirata  <kazu@cs.umass.edu>
 
        * c-incpath.c, c-incpath.h, c-pch.c, c.opt, cppexp.c,
index 602cbdd72a1d5efacdf14a9f62e7b88c89dd1fb6..e4a6fae57e5de6677e83349766fe1f662474c311 100644 (file)
@@ -737,4 +737,8 @@ You Lose!  You must define PREFERRED_DEBUGGING_TYPE!
 #define LEGITIMIZE_ADDRESS(X, OLDX, MODE, WIN)
 #endif
 
+#ifndef REVERSIBLE_CC_MODE
+#define REVERSIBLE_CC_MODE(MODE) 0
+#endif
+
 #endif  /* ! GCC_DEFAULTS_H */
index 6fd2de4fa81ae1eb0c7957d3d803d16be521a123..5567bb7ea665dc0c3010885333acf359a2d38fb8 100644 (file)
@@ -648,7 +648,6 @@ reversed_comparison_code_parts (enum rtx_code code, rtx arg0, rtx arg1, rtx insn
   /* 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 @@ reversed_comparison_code_parts (enum rtx_code code, rtx arg0, rtx arg1, rtx insn
 #endif
       return reverse_condition (code);
     }
-#endif
 
   /* Try a few special cases based on the comparison code.  */
   switch (code)