system.h: Poison EXTRA_CC_MODES.
authorEric Christopher <echristo@redhat.com>
Wed, 8 Jun 2005 00:28:41 +0000 (00:28 +0000)
committerEric Christopher <echristo@gcc.gnu.org>
Wed, 8 Jun 2005 00:28:41 +0000 (00:28 +0000)
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.

From-SVN: r100737

gcc/ChangeLog
gcc/config/frv/frv.h
gcc/config/ia64/ia64.h
gcc/doc/md.texi
gcc/doc/rtl.texi
gcc/system.h

index 44ad050bd68eb399f37b3eba12f2f2fb6d5f3eb1..a15b9852ef2195b93bd8f8afc31550dc441e5cb2 100644 (file)
@@ -1,3 +1,12 @@
+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.
+
 2005-06-07  Richard Henderson  <rth@redhat.com>
 
        * varasm.c (initialize_cold_section_name): Fix alloca buffer overflow.
index 9961758f611a4c6fe75bbda09efdeae8ba12d22d..fa9cca0e9a507e15171917a192cc7459debd856d 100644 (file)
@@ -2157,19 +2157,8 @@ do {                                                     \
 #define HAVE_PRE_MODIFY_REG 1
 
 \f
-/* 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))
-
-   You need not define this macro if `EXTRA_CC_MODES' is not defined.  */
+/* We define extra CC modes in frv-modes.def so we need a selector.  */
+
 #define SELECT_CC_MODE frv_select_cc_mode
 
 /* A C expression whose value is one if it is always safe to reverse a
index 28a8637defd9401a17ad3ea95ee5bc3e1b6e5c2e..427c17a61a95d007020bfdf513f353a46959e773 100644 (file)
@@ -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
 \f
index 11150d2a3b127afc18ec98238a13f760bf83048b..81f5ebcf38e316cd18c28d244aa817c8ed3706eb 100644 (file)
@@ -4282,9 +4282,9 @@ different formats of the condition code register.
 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 1f9372ebdd5fbae342a5bbd09a50d4d87d5d2cca..daca4cb5304c82dcac6bfcf68e39c25bcc79b89e 100644 (file)
@@ -1191,7 +1191,8 @@ Algol or Pascal function variables including a static chain.
 @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 6b0919f2bc8dd50930a8d010760ababda128975b..43455b96edb658eee6162d410c587ded428baef0 100644 (file)
@@ -739,7 +739,7 @@ extern void fancy_abort (const char *, int, const char *) ATTRIBUTE_NORETURN;
        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  \