Trivial cleanup patch

Jeffrey A Law law@cygnus.com
Sun Oct 11 00:52:00 GMT 1998


I installed this trivial cleanup patch.


        * flow.c (find_basic_blocks): Delte "live_reachable_p" argument.
        (find_basic_blocks_1): Similarly.
        * output.h (find_basic_blocks): Fix prototype.
        * gcse.c, toplev.c: Don't pass "live_reachable_p" argument to 
        find_basic_blocks anymore.

Index: flow.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/./gcc/flow.c,v
retrieving revision 1.67
diff -c -3 -p -r1.67 flow.c
*** flow.c	1998/10/09 16:08:43	1.67
--- flow.c	1998/10/11 06:14:13
*************** static void count_reg_references	PROTO (
*** 298,308 ****
     information to be inaccurate and not suitable for passes like GCSE.  */
  
  void
! find_basic_blocks (f, nregs, file, live_reachable_p)
       rtx f;
       int nregs;
       FILE *file;
-      int live_reachable_p;
  {
    register rtx insn;
    register int i;
--- 298,307 ----
     information to be inaccurate and not suitable for passes like GCSE.  */
  
  void
! find_basic_blocks (f, nregs, file)
       rtx f;
       int nregs;
       FILE *file;
  {
    register rtx insn;
    register int i;
*************** find_basic_blocks (f, nregs, file, live_
*** 402,408 ****
    uid_volatile = (char *) xmalloc (max_uid_for_flow + 1);
    bzero (uid_volatile, max_uid_for_flow + 1);
  
!   find_basic_blocks_1 (f, nonlocal_label_list, live_reachable_p);
  }
  
  /* For communication between find_basic_blocks_1 and its subroutines.  */
--- 401,407 ----
    uid_volatile = (char *) xmalloc (max_uid_for_flow + 1);
    bzero (uid_volatile, max_uid_for_flow + 1);
  
!   find_basic_blocks_1 (f, nonlocal_label_list);
  }
  
  /* For communication between find_basic_blocks_1 and its subroutines.  */
*************** static rtx nonlocal_label_list;
*** 436,444 ****
     information to be inaccurate and not suitable for passes like GCSE.  */
  
  static void
! find_basic_blocks_1 (f, nonlocal_labels, live_reachable_p)
       rtx f, nonlocal_labels;
-      int live_reachable_p;
  {
    register rtx insn;
    register int i;
--- 435,442 ----
     information to be inaccurate and not suitable for passes like GCSE.  */
  
  static void
! find_basic_blocks_1 (f, nonlocal_labels)
       rtx f, nonlocal_labels;
  {
    register rtx insn;
    register int i;
Index: gcse.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/./gcc/gcse.c,v
retrieving revision 1.16
diff -c -3 -p -r1.16 gcse.c
*** gcse.c	1998/10/08 01:26:18	1.16
--- gcse.c	1998/10/11 06:14:18
*************** gcse_main (f, file)
*** 669,675 ****
    debug_stderr = stderr;
  
    max_gcse_regno = max_reg_num ();
!   find_basic_blocks (f, max_gcse_regno, file, 0);
  
    /* Return if there's nothing to do.  */
    if (n_basic_blocks <= 1)
--- 669,675 ----
    debug_stderr = stderr;
  
    max_gcse_regno = max_reg_num ();
!   find_basic_blocks (f, max_gcse_regno, file);
  
    /* Return if there's nothing to do.  */
    if (n_basic_blocks <= 1)
Index: output.h
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/./gcc/output.h,v
retrieving revision 1.9
diff -c -3 -p -r1.9 output.h
*** output.h	1998/09/20 19:11:12	1.9
--- output.h	1998/10/11 06:14:19
*************** extern void allocate_for_life_analysis	P
*** 128,134 ****
  extern int regno_uninitialized		PROTO((int));
  extern int regno_clobbered_at_setjmp	PROTO((int));
  extern void dump_flow_info		PROTO((FILE *));
! extern void find_basic_blocks         PROTO((rtx, int, FILE *, int));
  extern void free_basic_block_vars     PROTO((int));
  extern void set_block_num             PROTO((rtx, int));
  extern void life_analysis             PROTO((rtx, int, FILE *));
--- 128,134 ----
  extern int regno_uninitialized		PROTO((int));
  extern int regno_clobbered_at_setjmp	PROTO((int));
  extern void dump_flow_info		PROTO((FILE *));
! extern void find_basic_blocks         PROTO((rtx, int, FILE *));
  extern void free_basic_block_vars     PROTO((int));
  extern void set_block_num             PROTO((rtx, int));
  extern void life_analysis             PROTO((rtx, int, FILE *));
Index: toplev.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/./gcc/toplev.c,v
retrieving revision 1.106
diff -c -3 -p -r1.106 toplev.c
*** toplev.c	1998/10/08 21:22:45	1.106
--- toplev.c	1998/10/11 06:14:28
*************** rest_of_compilation (decl)
*** 3649,3655 ****
        TIMEVAR
  	(flow_time,
  	 {
! 	   find_basic_blocks (insns, max_reg_num (), rtl_dump_file, 1);
  	   life_analysis (insns, max_reg_num (), rtl_dump_file);
  	 });
  
--- 3649,3655 ----
        TIMEVAR
  	(flow_time,
  	 {
! 	   find_basic_blocks (insns, max_reg_num (), rtl_dump_file);
  	   life_analysis (insns, max_reg_num (), rtl_dump_file);
  	 });
  



More information about the Gcc-patches mailing list