This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
bitmap debugging cleanup
- To: gcc-patches at gcc dot gnu dot org
- Subject: bitmap debugging cleanup
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Mon, 20 Sep 1999 05:41:20 -0600
- Reply-To: law at cygnus dot com
Most of our debugging routines look like
debug_XXXX
The bitmap.c file got it backwards in a couple places. This just makes it
consistently use debug_XXX along with the associated prototype fixes.
* bitmap.c (debug_bitmap_file): Renmaed from bitmap_debug_file.
Callers and prototype changed.
* bitmap.h: Fix debug_bitmap and debug_bitmap_file prototypes.
Index: bitmap.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/bitmap.c,v
retrieving revision 1.14
diff -c -3 -p -r1.14 bitmap.c
*** bitmap.c 1999/09/07 05:47:26 1.14
--- bitmap.c 1999/09/20 11:39:50
*************** bitmap_initialize (head)
*** 552,558 ****
/* Debugging function to print out the contents of a bitmap. */
void
! bitmap_debug_file (file, head)
FILE *file;
bitmap head;
{
--- 552,558 ----
/* Debugging function to print out the contents of a bitmap. */
void
! debug_bitmap_file (file, head)
FILE *file;
bitmap head;
{
*************** void
*** 602,611 ****
debug_bitmap (head)
bitmap head;
{
! bitmap_debug_file (stdout, head);
}
! /* Function to print out the contents of a bitmap. Unlike bitmap_debug_file,
it does not print anything but the bits. */
void
--- 602,611 ----
debug_bitmap (head)
bitmap head;
{
! debug_bitmap_file (stdout, head);
}
! /* Function to print out the contents of a bitmap. Unlike debug_bitmap_file,
it does not print anything but the bits. */
void
Index: bitmap.h
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/bitmap.h,v
retrieving revision 1.11
diff -c -3 -p -r1.11 bitmap.h
*** bitmap.h 1999/02/18 20:38:35 1.11
--- bitmap.h 1999/09/20 11:39:50
*************** extern void bitmap_set_bit PROTO((bitmap
*** 85,92 ****
extern int bitmap_bit_p PROTO((bitmap, int));
/* Debug functions to print a bitmap linked list. */
! extern void bitmap_debug PROTO((bitmap));
! extern void bitmap_debug_file PROTO((FILE *, bitmap));
/* Print a bitmap */
extern void bitmap_print PROTO((FILE *, bitmap, const char *, const char *));
--- 85,92 ----
extern int bitmap_bit_p PROTO((bitmap, int));
/* Debug functions to print a bitmap linked list. */
! extern void debug_bitmap PROTO((bitmap));
! extern void debug_bitmap_file PROTO((FILE *, bitmap));
/* Print a bitmap */
extern void bitmap_print PROTO((FILE *, bitmap, const char *, const char *));