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]

[rtlopt] remove debug messages from var-tracking.c


Hi,

this patch removes messages that were used for debugging
of variable tracking pass.

Bootstrapped i386.

Josef


2003-01-25  Josef Zlomek  <zlomekj@suse.cz>

	* var-tracking.c (DEBUG_REG_LOC): Deleted.
	(DEBUG_MEM_LOC): Deleted.
	(DEBUG_LENGTH): Deleted.
	(attrs_list_copy): Deleted debug message.
	(attrs_htab_copy_1): Deleted debug message.
	(compute_bb_dataflow): Deleted debug messages.

Index: var-tracking.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/Attic/var-tracking.c,v
retrieving revision 1.1.4.7
diff -c -3 -p -r1.1.4.7 var-tracking.c
*** var-tracking.c	23 Jan 2003 21:28:56 -0000	1.1.4.7
--- var-tracking.c	25 Jan 2003 08:10:12 -0000
***************
*** 30,39 ****
  #include "fibheap.h"
  #include "hashtab.h"
  
- #define DEBUG_REG_LOC 0
- #define DEBUG_MEM_LOC 0
- /*#define DEBUG_LENGTH 10*/
- 
  /* The purpose that the location (REG or MEM) has in RTL.  */
  enum location_type
  {
--- 30,35 ----
*************** attrs_list_copy (dstp, src)
*** 387,396 ****
       attrs_list src;
  {
    attrs_list n;
-   int i;
  
    attrs_list_clear (dstp);
!   for (i = 0; src; src = src->next, i++)
      {
        n = xmalloc (sizeof (*n));
        n->loc = src->loc;
--- 383,391 ----
       attrs_list src;
  {
    attrs_list n;
  
    attrs_list_clear (dstp);
!   for (; src; src = src->next)
      {
        n = xmalloc (sizeof (*n));
        n->loc = src->loc;
*************** attrs_list_copy (dstp, src)
*** 399,408 ****
        n->next = *dstp;
        *dstp = n;
      }
- #ifdef DEBUG_LENGTH
-   if (i >= DEBUG_LENGTH)
-     printf ("l=%d\n", i);
- #endif
  }
  
  /* Add all nodes from SRC which are not in *DSTP to *DSTP.  */
--- 394,399 ----
*************** attrs_htab_copy_1 (slot, data)
*** 574,586 ****
  {
    htab_t dst = (htab_t) data;
    attrs_list src, *dstp, list;
-   int i;
  
    src = *(attrs_list *) slot;
    dstp = (attrs_list *) htab_find_slot_with_hash (dst, src->loc,
  						  MEM_HASH_VAL (src->loc),
  						  INSERT);
!   for (i = 0; src; src = src->next, i++)
      {
        list = xmalloc (sizeof (*list));
        list->loc = src->loc;
--- 565,576 ----
  {
    htab_t dst = (htab_t) data;
    attrs_list src, *dstp, list;
  
    src = *(attrs_list *) slot;
    dstp = (attrs_list *) htab_find_slot_with_hash (dst, src->loc,
  						  MEM_HASH_VAL (src->loc),
  						  INSERT);
!   for (; src; src = src->next)
      {
        list = xmalloc (sizeof (*list));
        list->loc = src->loc;
*************** attrs_htab_copy_1 (slot, data)
*** 589,598 ****
        list->next = *dstp;
        *dstp = list;
      }
- #ifdef DEBUG_LENGTH
-   if (i >= DEBUG_LENGTH)
-     printf ("L=%d\n", i);
- #endif
    return 1;
  }
  
--- 579,584 ----
*************** compute_bb_dataflow (bb)
*** 856,871 ****
  		{
  		  attrs_list_insert (&out[REGNO (loc)], REG_EXPR (loc),
  				     REG_OFFSET (loc), loc);
- #if DEBUG_REG_LOC
- 		  if (rtl_dump_file)
- 		    {
- 		      HOST_WIDE_INT offset = REG_OFFSET (loc);
- 
- 		      print_mem_expr (rtl_dump_file, REG_EXPR (loc));
- 		      fprintf (rtl_dump_file, " O%ld ", offset);
- 		      print_rtl_single (rtl_dump_file, loc);
- 		    }
- #endif
  		}
  	    }
  	}
--- 842,847 ----
*************** compute_bb_dataflow (bb)
*** 877,890 ****
  	  tree decl = MEM_EXPR (loc);
  	  HOST_WIDE_INT offset = MEM_OFFSET (loc) ? INTVAL (MEM_OFFSET (loc)) : 0;
  
- #if DEBUG_MEM_LOC
- 	  if (rtl_dump_file)
- 	    {
- 	      print_mem_expr (rtl_dump_file, decl);
- 	      fprintf (rtl_dump_file, " A%ld O%ld ", MEM_ALIAS_SET (loc), offset);
- 	      print_rtl_single (rtl_dump_file, loc);
- 	    }
- #endif
  	  attrs_htab_delete (VTI (bb)->mem_out, loc);
  	  if (VTI (bb)->locs[i].type == LT_PARAM
  	      || VTI (bb)->locs[i].type == LT_SET_DEST)
--- 853,858 ----


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