[patch] h8300: Remove an unused argument from expand_a_rotate().
Kazu Hirata
kazu@cs.umass.edu
Wed Feb 18 22:10:00 GMT 2004
Hi,
Attached is a patch to remove an unused argument from
expand_a_rotate().
Built h8300-elf. Committed.
Kazu Hirata
2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
* config/h8300/h8300-protos.h: Update the prototype for
expand_a_rotate().
* config/h8300/h8300.c (expand_a_rotate): Remove the first
argument.
* config/h8300/h8300.md: Update all callers.
Index: h8300-protos.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/h8300/h8300-protos.h,v
retrieving revision 1.70
diff -u -r1.70 h8300-protos.h
--- h8300-protos.h 18 Feb 2004 00:42:37 -0000 1.70
+++ h8300-protos.h 18 Feb 2004 20:31:35 -0000
@@ -47,7 +47,7 @@
extern int compute_logical_op_cc (enum machine_mode, rtx *);
extern void expand_a_shift (enum machine_mode, int, rtx[]);
extern int h8300_shift_needs_scratch_p (int, enum machine_mode);
-extern int expand_a_rotate (enum rtx_code, rtx[]);
+extern int expand_a_rotate (rtx[]);
extern int fix_bit_operand (rtx *, enum rtx_code);
extern int h8300_adjust_insn_length (rtx, int);
extern void split_adds_subs (enum machine_mode, rtx[]);
Index: h8300.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/h8300/h8300.c,v
retrieving revision 1.282
diff -u -r1.282 h8300.c
--- h8300.c 18 Feb 2004 19:42:22 -0000 1.282
+++ h8300.c 18 Feb 2004 20:31:37 -0000
@@ -3855,7 +3855,7 @@
output_a_rotate () at the insn emit time. */
int
-expand_a_rotate (enum rtx_code code, rtx operands[])
+expand_a_rotate (rtx operands[])
{
rtx dst = operands[0];
rtx src = operands[1];
Index: h8300.md
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/h8300/h8300.md,v
retrieving revision 1.272
diff -u -r1.272 h8300.md
--- h8300.md 18 Feb 2004 19:42:22 -0000 1.272
+++ h8300.md 18 Feb 2004 20:31:38 -0000
@@ -2600,7 +2600,7 @@
(rotate:QI (match_operand:QI 1 "register_operand" "")
(match_operand:QI 2 "nonmemory_operand" "")))]
""
- "if (expand_a_rotate (ROTATE, operands)) DONE; else FAIL;")
+ "if (expand_a_rotate (operands)) DONE; else FAIL;")
(define_insn "rotlqi3_1"
[(set (match_operand:QI 0 "register_operand" "=r")
@@ -2616,7 +2616,7 @@
(rotate:HI (match_operand:HI 1 "register_operand" "")
(match_operand:QI 2 "nonmemory_operand" "")))]
""
- "if (expand_a_rotate (ROTATE, operands)) DONE; else FAIL;")
+ "if (expand_a_rotate (operands)) DONE; else FAIL;")
(define_insn "rotlhi3_1"
[(set (match_operand:HI 0 "register_operand" "=r")
@@ -2632,7 +2632,7 @@
(rotate:SI (match_operand:SI 1 "register_operand" "")
(match_operand:QI 2 "nonmemory_operand" "")))]
"TARGET_H8300H || TARGET_H8300S"
- "if (expand_a_rotate (ROTATE, operands)) DONE; else FAIL;")
+ "if (expand_a_rotate (operands)) DONE; else FAIL;")
(define_insn "rotlsi3_1"
[(set (match_operand:SI 0 "register_operand" "=r")
More information about the Gcc-patches
mailing list