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] h8300: Rename function names.


Hi,

Attached is a patch to rename some function names to a little more
consistent ones.  Committed as obvious.

Kazu Hirata

2002-12-31  Kazu Hirata  <kazu@cs.umass.edu>

	* config/h8300/h8300-protos.h: Update the prototypes.
	* config/h8300/h8300.c (const_le_2_operand): Change to
	const_int_le_2_operand.
	(const_int_le_6_operand): Change to const_int_le_6_operand.
	* config/h8300/h8300.md (two peepholes): Update the function
	names.

Index: h8300-protos.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/h8300/h8300-protos.h,v
retrieving revision 1.40
diff -u -r1.40 h8300-protos.h
--- h8300-protos.h	29 Dec 2002 14:36:34 -0000	1.40
+++ h8300-protos.h	31 Dec 2002 20:59:46 -0000
@@ -62,8 +62,8 @@
 extern int jump_address_operand PARAMS ((rtx, enum machine_mode));
 extern int bit_operand PARAMS ((rtx, enum machine_mode));
 extern int bit_memory_operand PARAMS ((rtx, enum machine_mode));
-extern int const_le_2_operand PARAMS ((rtx, enum machine_mode));
-extern int const_le_6_operand PARAMS ((rtx, enum machine_mode));
+extern int const_int_le_2_operand PARAMS ((rtx, enum machine_mode));
+extern int const_int_le_6_operand PARAMS ((rtx, enum machine_mode));
 extern int const_int_qi_operand PARAMS ((rtx, enum machine_mode));
 extern int const_int_hi_operand PARAMS ((rtx, enum machine_mode));
 extern int incdec_operand PARAMS ((rtx, enum machine_mode));
Index: h8300.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/h8300/h8300.c,v
retrieving revision 1.189
diff -u -r1.189 h8300.c
--- h8300.c	30 Dec 2002 21:08:42 -0000	1.189
+++ h8300.c	31 Dec 2002 20:59:47 -0000
@@ -1831,7 +1831,7 @@
    greater than 2.  */
 
 int
-const_le_2_operand (x, mode)
+const_int_le_2_operand (x, mode)
      rtx x;
      enum machine_mode mode ATTRIBUTE_UNUSED;
 {
@@ -1843,7 +1843,7 @@
    greater than 6.  */
 
 int
-const_le_6_operand (x, mode)
+const_int_le_6_operand (x, mode)
      rtx x;
      enum machine_mode mode ATTRIBUTE_UNUSED;
 {
Index: h8300.md
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/h8300/h8300.md,v
retrieving revision 1.138
diff -u -r1.138 h8300.md
--- h8300.md	30 Dec 2002 15:35:20 -0000	1.138
+++ h8300.md	31 Dec 2002 20:59:48 -0000
@@ -2944,7 +2944,7 @@
 (define_peephole2
   [(set (cc0)
 	(compare:HI (match_operand:HI 0 "register_operand" "")
-		    (match_operand:HI 1 "const_le_2_operand" "")))
+		    (match_operand:HI 1 "const_int_le_2_operand" "")))
    (set (pc)
 	(if_then_else (match_operator 3 "eqne_operator"
 			[(cc0) (const_int 0)])
@@ -2966,7 +2966,7 @@
 (define_peephole2
   [(set (cc0)
 	(compare:SI (match_operand:SI 0 "register_operand" "")
-		    (match_operand:SI 1 "const_le_6_operand" "")))
+		    (match_operand:SI 1 "const_int_le_6_operand" "")))
    (set (pc)
 	(if_then_else (match_operator 3 "eqne_operator"
 			[(cc0) (const_int 0)])


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