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] remove vestiges of EXTRA_CC_MODES from docs


While I was looking around at some other things I ran across the
reference to EXTRA_CC_MODES and remembered it being removed.

OK to remove the last bits of docs that reference it?

I think EXTRA_CC_MODES should also be poisoned, if so, OK with that
change? :)

Tested by building the documentation.

-eric

2005-06-07  Eric Christopher  <echristo@redhat.com>

	* 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: config/frv/frv.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/frv/frv.h,v
retrieving revision 1.63
diff -u -p -r1.63 frv.h
--- config/frv/frv.h	4 Apr 2005 21:53:22 -0000	1.63
+++ config/frv/frv.h	7 Jun 2005 23:05:49 -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 -r1.199 ia64.h
--- config/ia64/ia64.h	26 May 2005 05:27:48 -0000	1.199
+++ config/ia64/ia64.h	7 Jun 2005 23:05:49 -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 -r1.134 md.texi
--- doc/md.texi	6 Jun 2005 03:57:36 -0000	1.134
+++ doc/md.texi	7 Jun 2005 23:05:51 -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 -r1.85 rtl.texi
--- doc/rtl.texi	1 Jun 2005 19:11:54 -0000	1.85
+++ doc/rtl.texi	7 Jun 2005 23:05:52 -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



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