This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] rtl.h: Always compare against cc0_rtx.
- From: Kazu Hirata <kazu at cs dot umass dot edu>
- To: gcc-patches at gcc dot gnu dot org
- Cc: roger at www dot eyesopen dot com, zack at codesourcery dot com, rth at redhat dot com
- Date: Mon, 03 Feb 2003 08:58:41 -0500 (EST)
- Subject: [patch] rtl.h: Always compare against cc0_rtx.
Hi,
Attached is a patch to make CC0_P always compare against cc0_rtx.
This is a revised version of
http://gcc.gnu.org/ml/gcc-patches/2003-02/msg00058.html
incorporating Zack's suggestion.
Tested on h8300 port. OK to apply?
Kazu Hirata
2003-02-03 Zack Weinberg <zack@codesourcery.com>,
Kazu Hirata <kazu@cs.umass.edu>
* rtl.h (CC0_P): Always compare against cc0_rtx.
Index: rtl.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/rtl.h,v
retrieving revision 1.382
diff -u -r1.382 rtl.h
--- rtl.h 24 Jan 2003 22:45:57 -0000 1.382
+++ rtl.h 3 Feb 2003 03:56:44 -0000
@@ -274,11 +274,7 @@
#define BARRIER_P(X) (GET_CODE (X) == BARRIER)
/* Predicate yielding nonzero iff X is cc0. */
-#ifdef HAVE_cc0
#define CC0_P(X) ((X) == cc0_rtx)
-#else
-#define CC0_P(X) 0
-#endif
/* Predicate yielding nonzero iff X is a data for a jump table. */
#define JUMP_TABLE_DATA_P(INSN) \