pdp11.c (comparison_operator_index): Remove.
authorKazu Hirata <kazu@cs.umass.edu>
Mon, 8 Mar 2004 15:41:41 +0000 (15:41 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Mon, 8 Mar 2004 15:41:41 +0000 (15:41 +0000)
* config/pdp11/pdp11.c (comparison_operator_index): Remove.
(comp_operator): Likewise.
* config/pdp11/pdp11-protos.h: Remove corresponding
prototypes.

From-SVN: r79116

gcc/ChangeLog
gcc/config/pdp11/pdp11-protos.h
gcc/config/pdp11/pdp11.c

index f080f0524f68eaf8129db5e99c3bfefb464c7974..eef895dd8c4bbd015b1ea87e8712c772467e1e1e 100644 (file)
@@ -1,3 +1,10 @@
+2004-03-08  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * config/pdp11/pdp11.c (comparison_operator_index): Remove.
+       (comp_operator): Likewise.
+       * config/pdp11/pdp11-protos.h: Remove corresponding
+       prototypes.
+
 2004-03-08  Eric Botcazou  <ebotcazou@act-europe.fr>
 
        * expr.c (highest_pow2_factor_for_type): Rename into
index 4c460affb583d2a767d18c0f2bf6c4b266ccb112..528b065cd37cc65e594c6227114e034703e54980 100644 (file)
@@ -26,7 +26,6 @@ extern int const_immediate_operand (rtx, enum machine_mode);
 extern int expand_shift_operand (rtx, enum machine_mode);
 extern int immediate15_operand (rtx, enum machine_mode);
 extern int simple_memory_operand (rtx, enum machine_mode);
-extern int comp_operator (rtx, enum machine_mode);
 
 extern int legitimate_address_p (enum machine_mode, rtx);
 extern int legitimate_const_double_p (rtx);
@@ -37,7 +36,6 @@ extern const char *output_move_quad (rtx *);
 extern const char *output_block_move (rtx *);
 extern void print_operand_address (FILE *, rtx);
 extern int register_move_cost (enum reg_class, enum reg_class);
-extern int comparison_operator_index (rtx);
 #endif /* RTX_CODE */
 
 extern void output_ascii (FILE *, const char *, int);
index 71adbeaa39c1a907b9ed541553e3c426dca254b8..9c2def4c3a1a225b9fd9fadc8fa2e4b7f782c6ff 100644 (file)
@@ -1600,55 +1600,6 @@ output_block_move(rtx *operands)
     return "";
 }
 
-/* for future use */
-int
-comparison_operator_index(rtx op)
-{
-    switch (GET_CODE(op))
-    {
-      case NE:
-       return 0;
-       
-      case EQ:
-       return 1;
-       
-      case GE:
-       return 2;
-       
-      case GT:
-       return 3;
-       
-      case LE:
-       return 4;
-       
-      case LT:
-       return 5;
-       
-      case GEU:
-       return 6;
-       
-      case GTU:
-       return 7;
-
-      case LEU:
-       return 8;
-       
-      case LTU:
-       return 9;
-       
-      default:
-       return -1;
-    }
-}    
-       
-/* tests whether the rtx is a comparison operator */
-int
-comp_operator (rtx op, enum machine_mode mode ATTRIBUTE_UNUSED)
-{
-    return comparison_operator_index(op) >= 0;
-}
-
-    
 int
 legitimate_address_p (enum machine_mode mode, rtx address)
 {