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] emit-rtl.c: Make classify_insn static.


Hi,

Bootstrapped on i686-pc-linux-gnu.  OK to apply?

Kazu Hirata

2004-11-17  Kazu Hirata  <kazu@cs.umass.edu>

	* emit-rtl.c (classify_insn): Make it static.
	* rtl.h: Remove the corresponding prototype.

Index: emit-rtl.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/emit-rtl.c,v
retrieving revision 1.424
diff -u -d -p -r1.424 emit-rtl.c
--- emit-rtl.c	14 Nov 2004 12:55:15 -0000	1.424
+++ emit-rtl.c	16 Nov 2004 00:57:26 -0000
@@ -4708,7 +4708,7 @@ set_unique_reg_note (rtx insn, enum reg_
 /* Return an indication of which type of insn should have X as a body.
    The value is CODE_LABEL, INSN, CALL_INSN or JUMP_INSN.  */
 
-enum rtx_code
+static enum rtx_code
 classify_insn (rtx x)
 {
   if (LABEL_P (x))
Index: rtl.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/rtl.h,v
retrieving revision 1.524
diff -u -d -p -r1.524 rtl.h
--- rtl.h	14 Nov 2004 12:55:15 -0000	1.524
+++ rtl.h	16 Nov 2004 00:57:28 -0000
@@ -1957,7 +1957,6 @@ extern void add_insn_before (rtx, rtx);
 extern void add_insn_after (rtx, rtx);
 extern void remove_insn (rtx);
 extern void emit_insn_after_with_line_notes (rtx, rtx, rtx);
-extern enum rtx_code classify_insn (rtx);
 extern rtx emit (rtx);
 extern void renumber_insns (FILE *);
 extern void remove_unnecessary_notes (void);


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