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]

Warnging removal in final.c


The change to remove the BB profiling code in final.c left some unused var,
which I delete here.

Tested by compilation only.

Fri Dec  7 07:06:17 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>

	* final.c (bb_head, bb_tail, bb_file_label_num, bb_func_label_num):
	Deleted; were used only by BB profiler code.
	(sbb_head, sbb_tail, sbb_label_num): Likewise.
	(end_final): Delete now-unused vars I, PTR, and SPTR.

*** final.c	2001/12/06 11:49:09	1.229
--- final.c	2001/12/07 12:27:00
*************** struct bb_list
*** 213,221 ****
  };
  
- static struct bb_list *bb_head	= 0;		/* Head of basic block list */
- static struct bb_list **bb_tail = &bb_head;	/* Ptr to store next bb ptr */
- static int bb_file_label_num	= -1;		/* Current label # for file */
- static int bb_func_label_num	= -1;		/* Current label # for func */
- 
  /* Linked list to hold the strings for each file and function name output.  */
  
--- 213,216 ----
*************** struct bb_str
*** 228,235 ****
  };
  
- static struct bb_str *sbb_head	= 0;		/* Head of string list.  */
- static struct bb_str **sbb_tail	= &sbb_head;	/* Ptr to store next bb str */
- static int sbb_label_num	= 0;		/* Last label used */
- 
  #ifdef HAVE_ATTR_length
  static int asm_insn_count	PARAMS ((rtx));
--- 223,226 ----
*************** end_final (filename)
*** 277,282 ****
       const char *filename;
  {
-   int i;
- 
    if (profile_arc_flag)
      {
--- 268,271 ----
*************** end_final (filename)
*** 284,289 ****
        int align = exact_log2 (BIGGEST_ALIGNMENT / BITS_PER_UNIT);
        int size, rounded;
-       struct bb_list *ptr;
-       struct bb_str *sptr;
        int long_bytes = LONG_TYPE_SIZE / BITS_PER_UNIT;
        int gcov_type_bytes = GCOV_TYPE_SIZE / BITS_PER_UNIT;
--- 273,276 ----
*************** final_end_function ()
*** 1711,1716 ****
      dwarf2out_end_epilogue ();
  #endif
- 
-   bb_func_label_num = -1;	/* not in function, nuke label # */
  }
  
--- 1698,1701 ----


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