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]

Time variable cleanup


As suggested:

Sat Apr 15 10:59:19 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>

	* Makefile.in (ggc-page.o): Now includes toplev.h.
	* ggc-page.c (toplev.h): Now included.
	(gc_time): Remove declaration.
	(ggc_collect): TIME now long.
	* toplev.c (parse_time, varasm_time, gc_time): Still global; all
	others static.
	* toplev.h (gc_time, parse_time, gc_time): New declarations.
	* cp/decl2.c (parse_time, varconst_time): Delete declarations.
	(finish_file): Delete LINENO declaration.
	START_TIME and THIS_TIME now long.

Sat Apr 15 10:59:19 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>

	* Makefile.in (ggc-page.o): Now includes toplev.h.
	* ggc-page.c (toplev.h): Now included.
	(gc_time): Remove declaration.
	(ggc_collect): TIME now long.
	* toplev.c (parse_time, varasm_time, gc_time): Still global; all
	others static.
	* toplev.h (gc_time, parse_time, gc_time): New declarations.

*** Makefile.in	2000/04/14 22:13:59	1.420
--- Makefile.in	2000/04/15 19:43:58
*************** ggc-simple.o: ggc-simple.c $(CONFIG_H) $
*** 1476,1480 ****
  	$(GGC_H) varray.h
  
! ggc-page.o: ggc-page.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h \
  	$(GGC_H) varray.h
  
--- 1476,1480 ----
  	$(GGC_H) varray.h
  
! ggc-page.o: ggc-page.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h toplev.h \
  	$(GGC_H) varray.h
  
*** ggc-page.c	2000/03/07 20:39:05	1.24
--- ggc-page.c	2000/04/15 19:44:00
***************
*** 24,27 ****
--- 24,28 ----
  #include "rtl.h"
  #include "tm_p.h"
+ #include "toplev.h"
  #include "varray.h"
  #include "flags.h"
***************
*** 98,104 ****
  #endif
  
- /* Timing information for collect execution goes into here.  */
- extern int gc_time;
- 
  /* The "" allocated string.  */
  char *empty_string;
--- 99,102 ----
*************** void
*** 1104,1108 ****
  ggc_collect ()
  {
!   int time;
  
    /* Avoid frequent unnecessary work by skipping collection if the
--- 1102,1106 ----
  ggc_collect ()
  {
!   long time;
  
    /* Avoid frequent unnecessary work by skipping collection if the
*************** ggc_collect ()
*** 1116,1120 ****
    time = get_run_time ();
    if (!quiet_flag)
!     fprintf (stderr, " {GC %luk -> ", (unsigned long)G.allocated / 1024);
  
    /* Zero the total allocated bytes.  We'll reaccumulate this while
--- 1114,1118 ----
    time = get_run_time ();
    if (!quiet_flag)
!     fprintf (stderr, " {GC %luk -> ", (unsigned long) G.allocated / 1024);
  
    /* Zero the total allocated bytes.  We'll reaccumulate this while
*** toplev.c	2000/04/15 16:59:08	1.317
--- toplev.c	2000/04/15 19:44:12
*************** read_integral_parameter (p, pname, defva
*** 1402,1437 ****
  
  
! /* Time accumulators, to count the total time spent in various passes.  */
  
  long parse_time;
  long varconst_time;
! long integration_time;
! long jump_time;
! long cse_time;
! long gcse_time;
! long loop_time;
! long cse2_time;
! long branch_prob_time;
! long flow_time;
! long combine_time;
! long regmove_time;
! long sched_time;
! long local_alloc_time;
! long global_alloc_time;
! long flow2_time;
! long peephole2_time;
! long sched2_time;
! long dbr_sched_time;
! long reorder_blocks_time;
! long rename_registers_time;
! long shorten_branch_time;
! long stack_reg_time;
! long to_ssa_time;
! long from_ssa_time;
! long final_time;
! long symout_time;
! long dump_time;
! long gc_time;
! long all_time;
  
  /* Return time used so far, in microseconds.  */
--- 1402,1439 ----
  
  
! /* Time accumulators, to count the total time spent in various passes.
!    The first three are used in other files; the latter two only here.  */
  
+ long gc_time;
  long parse_time;
  long varconst_time;
! 
! static long integration_time;
! static long jump_time;
! static long cse_time;
! static long gcse_time;
! static long loop_time;
! static long cse2_time;
! static long branch_prob_time;
! static long flow_time;
! static long combine_time;
! static long regmove_time;
! static long sched_time;
! static long local_alloc_time;
! static long global_alloc_time;
! static long flow2_time;
! static long peephole2_time;
! static long sched2_time;
! static long dbr_sched_time;
! static long reorder_blocks_time;
! static long rename_registers_time;
! static long shorten_branch_time;
! static long stack_reg_time;
! static long to_ssa_time;
! static long from_ssa_time;
! static long final_time;
! static long symout_time;
! static long dump_time;
! static long all_time;
  
  /* Return time used so far, in microseconds.  */
*** toplev.h	2000/04/15 16:59:08	1.36
--- toplev.h	2000/04/15 19:44:12
*************** struct rtx_def;
*** 27,30 ****
--- 27,34 ----
  #endif
  
+ extern long gc_time;
+ extern long parse_time;
+ extern long varconst_time;
+ 
  extern int read_integral_parameter	PARAMS ((const char *, const char *,
  						const int));
*** cp/decl2.c	2000/04/11 20:16:35	1.333
--- cp/decl2.c	2000/04/15 19:44:34
*************** build_cleanup (decl)
*** 2761,2766 ****
  }
  
- extern int parse_time, varconst_time;
- 
  static tree
  get_sentry (base)
--- 2761,2764 ----
*************** get_sentry (base)
*** 2772,2775 ****
--- 2770,2774 ----
       be globally unique */
    tree sentry = IDENTIFIER_GLOBAL_VALUE (sname);
+ 
    if (! sentry)
      {
*************** void
*** 3414,3419 ****
  finish_file ()
  {
!   extern int lineno;
!   int start_time, this_time;
    tree vars;
    int reconsider;
--- 3413,3417 ----
  finish_file ()
  {
!   long start_time, this_time;
    tree vars;
    int reconsider;

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