This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] remove vestiges of EXTRA_CC_MODES from docs
On Tue, 2005-06-07 at 16:21 -0700, Richard Henderson wrote:
> On Tue, Jun 07, 2005 at 04:17:41PM -0700, Eric Christopher wrote:
> > I think EXTRA_CC_MODES should also be poisoned, if so, OK with that
> > change? :)
>
> Yes.
Thanks. This is what I committed.
-eric
2005-06-07 Eric Christopher <echristo@redhat.com>
* system.h: Poison EXTRA_CC_MODES.
* config/frv/frv.h (SELECT_CC_MODE): Rewrite comment.
* config/ia64/ia64.h (SELECT_CC_MODE): Ditto.
* doc/md.texi (Jump Patterns): Replace reference to
EXTRA_CC_MODES with machine-modes.def.
* doc/rtl.texi (Machine Modes): Ditto.
Index: system.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/system.h,v
retrieving revision 1.256
diff -u -p -w -r1.256 system.h
--- system.h 1 Jun 2005 07:02:17 -0000 1.256
+++ system.h 8 Jun 2005 00:14:24 -0000
@@ -739,7 +739,7 @@ extern void fancy_abort (const char *, i
CASE_DROPS_THROUGH TARGET_BELL TARGET_BS TARGET_CR TARGET_DIGIT0 \
TARGET_ESC TARGET_FF TARGET_NEWLINE TARGET_TAB TARGET_VT \
LINK_LIBGCC_SPECIAL DONT_ACCESS_GBLS_AFTER_EPILOGUE \
- TARGET_OPTIONS TARGET_SWITCHES
+ TARGET_OPTIONS TARGET_SWITCHES EXTRA_CC_MODES
/* Hooks that are no longer used. */
#pragma GCC poison LANG_HOOKS_FUNCTION_MARK LANG_HOOKS_FUNCTION_FREE \
Index: config/frv/frv.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/frv/frv.h,v
retrieving revision 1.63
diff -u -p -w -r1.63 frv.h
--- config/frv/frv.h 4 Apr 2005 21:53:22 -0000 1.63
+++ config/frv/frv.h 8 Jun 2005 00:14:25 -0000
@@ -2157,19 +2157,8 @@ do { \
#define HAVE_PRE_MODIFY_REG 1
-/* Returns a mode from class `MODE_CC' to be used when comparison
operation
- code OP is applied to rtx X and Y. For example, on the SPARC,
- `SELECT_CC_MODE' is defined as (see *note Jump Patterns::. for a
- description of the reason for this definition)
-
- #define SELECT_CC_MODE(OP,X,Y) \
- (GET_MODE_CLASS (GET_MODE (X)) == MODE_FLOAT \
- ? ((OP == EQ || OP == NE) ? CCFPmode : CCFPEmode) \
- : ((GET_CODE (X) == PLUS || GET_CODE (X) == MINUS \
- || GET_CODE (X) == NEG) \
- ? CC_NOOVmode : CCmode))
+/* We define extra CC modes in frv-modes.def so we need a selector. */
- You need not define this macro if `EXTRA_CC_MODES' is not defined.
*/
#define SELECT_CC_MODE frv_select_cc_mode
/* A C expression whose value is one if it is always safe to reverse a
Index: config/ia64/ia64.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/ia64/ia64.h,v
retrieving revision 1.199
diff -u -p -w -r1.199 ia64.h
--- config/ia64/ia64.h 26 May 2005 05:27:48 -0000 1.199
+++ config/ia64/ia64.h 8 Jun 2005 00:14:25 -0000
@@ -505,9 +505,7 @@ while (0)
#define LOCAL_REGNO(REGNO) \
(IN_REGNO_P (REGNO) || LOC_REGNO_P (REGNO))
-/* Given a comparison code (EQ, NE, etc.) and the first operand of a
COMPARE,
- return the mode to be used for the comparison. Must be defined if
- EXTRA_CC_MODES is defined. */
+/* We define CCImode in ia64-modes.def so we need a selector. */
#define SELECT_CC_MODE(OP,X,Y) CCmode
Index: doc/md.texi
===================================================================
RCS file: /cvs/gcc/gcc/gcc/doc/md.texi,v
retrieving revision 1.134
diff -u -p -w -r1.134 md.texi
--- doc/md.texi 6 Jun 2005 03:57:36 -0000 1.134
+++ doc/md.texi 8 Jun 2005 00:14:27 -0000
@@ -4282,9 +4282,9 @@ different formats of the condition code
Registers used to store the condition code value should have a mode
that
is in class @code{MODE_CC}. Normally, it will be @code{CCmode}. If
additional modes are required (as for the add example mentioned above
in
-the SPARC), define the macro @code{EXTRA_CC_MODES} to list the
-additional modes required (@pxref{Condition Code}). Also define
-@code{SELECT_CC_MODE} to choose a mode given an operand of a compare.
+the SPARC), define them in @file{@var{machine}-modes.def}
+(@pxref{Condition Code}). Also define @code{SELECT_CC_MODE} to choose
+a mode given an operand of a compare.
If it is known during RTL generation that a different mode will be
required (for example, if the machine has separate compare instructions
Index: doc/rtl.texi
===================================================================
RCS file: /cvs/gcc/gcc/gcc/doc/rtl.texi,v
retrieving revision 1.85
diff -u -p -w -r1.85 rtl.texi
--- doc/rtl.texi 1 Jun 2005 19:11:54 -0000 1.85
+++ doc/rtl.texi 8 Jun 2005 00:14:28 -0000
@@ -1191,7 +1191,8 @@ Algol or Pascal function variables inclu
@findex MODE_CC
@item MODE_CC
Modes representing condition code values. These are @code{CCmode} plus
-any modes listed in the @code{EXTRA_CC_MODES} macro. @xref{Jump
Patterns},
+any @code{CC_MODE} modes listed in the @file{@var{machine}-
modes.def}.
+@xref{Jump Patterns},
also see @ref{Condition Code}.
@findex MODE_RANDOM