This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] pdp11: Remove two unused functions.
- From: Kazu Hirata <kazu at cs dot umass dot edu>
- To: gcc-patches at gcc dot gnu dot org
- Cc: ni1d at arrl dot net
- Date: Sun, 07 Mar 2004 13:01:44 -0500 (EST)
- Subject: [patch] pdp11: Remove two unused functions.
Hi,
Attached is a patch to remove two unused functions.
Built cc1 of pdp11-unknown-bsd. OK to apply?
Kazu Hirata
2004-03-07 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.
Index: pdp11-protos.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/pdp11/pdp11-protos.h,v
retrieving revision 1.6
diff -u -r1.6 pdp11-protos.h
--- pdp11-protos.h 3 Feb 2004 17:36:02 -0000 1.6
+++ pdp11-protos.h 7 Mar 2004 17:43:26 -0000
@@ -26,7 +26,6 @@
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_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: pdp11.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/pdp11/pdp11.c,v
retrieving revision 1.39
diff -u -r1.39 pdp11.c
--- pdp11.c 8 Feb 2004 23:08:44 -0000 1.39
+++ pdp11.c 7 Mar 2004 17:43:28 -0000
@@ -1600,55 +1600,6 @@
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)
{