This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] Provide a default definition for REVERSIBLE_CC_MODE.
- From: Kazu Hirata <kazu at cs dot umass dot edu>
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 15 Mar 2004 13:51:59 -0500 (EST)
- Subject: [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)