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] cfgbuild.c: Remove unused arguments from find_basic_blocks.


Hi,

Attached is a patch to remove unused arguments from find_basic_blocks.

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

Kazu Hirata

2005-02-14  Kazu Hirata  <kazu@cs.umass.edu>

	* basic-block.h: Adjust the prototype for find_basic_blocks.
	* cfgbuild.c (find_basic_blocks): Remove unused arguments.
	* passes.c (rest_of_handle_loop_optimize): Adjust the call to
	find_basic_blocks.

Index: basic-block.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/basic-block.h,v
retrieving revision 1.237
diff -u -d -p -r1.237 basic-block.h
--- basic-block.h	1 Feb 2005 10:03:02 -0000	1.237
+++ basic-block.h	14 Feb 2005 17:52:14 -0000
@@ -779,7 +779,7 @@ extern void alloc_aux_for_edge (edge, in
 extern void alloc_aux_for_edges (int);
 extern void clear_aux_for_edges (void);
 extern void free_aux_for_edges (void);
-extern void find_basic_blocks (rtx, int, FILE *);
+extern void find_basic_blocks (rtx);
 extern bool cleanup_cfg (int);
 extern bool delete_unreachable_blocks (void);
 extern bool merge_seq_blocks (void);
Index: cfgbuild.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cfgbuild.c,v
retrieving revision 1.60
diff -u -d -p -r1.60 cfgbuild.c
--- cfgbuild.c	26 Jan 2005 17:26:33 -0000	1.60
+++ cfgbuild.c	14 Feb 2005 17:52:14 -0000
@@ -482,12 +482,10 @@ find_basic_blocks_1 (rtx f)
 
 
 /* Find basic blocks of the current function.
-   F is the first insn of the function and NREGS the number of register
-   numbers in use.  */
+   F is the first insn of the function.  */
 
 void
-find_basic_blocks (rtx f, int nregs ATTRIBUTE_UNUSED,
-		   FILE *file ATTRIBUTE_UNUSED)
+find_basic_blocks (rtx f)
 {
   basic_block bb;
 
Index: passes.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/passes.c,v
retrieving revision 2.68
diff -u -d -p -r2.68 passes.c
--- passes.c	14 Feb 2005 15:13:24 -0000	2.68
+++ passes.c	14 Feb 2005 17:52:14 -0000
@@ -1105,7 +1105,7 @@ rest_of_handle_loop_optimize (void)
 
   /* Loop can create trivially dead instructions.  */
   delete_trivially_dead_insns (get_insns (), max_reg_num ());
-  find_basic_blocks (get_insns (), max_reg_num (), dump_file);
+  find_basic_blocks (get_insns ());
   close_dump_file (DFI_loop, print_rtl, get_insns ());
   timevar_pop (TV_LOOP);
 


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