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]

[tree-ssa, obvious] Fix bootstrap with GATHER_STATISTICS


The tree-ssa branch failed to bootstrap with -DGATHER_STATISTICS:
./../tree-ssa/gcc/tree-ssanames.c: In function `ssanames_print_statistics':
../../tree-ssa/gcc/tree-ssanames.c:97: warning: old-style parameter declaration
../../tree-ssa/gcc/tree-ssanames.c:98: warning: long unsigned int format, unsigned int arg (arg 3)
../../tree-ssa/gcc/tree-ssanames.c:99: warning: long unsigned int format, unsigned int arg (arg 3)

Fixed thus.

Gr.
Steven


2003-11-20  Steven Bosscher  <stevenb@suse.de>

        * tree-ssanames.c (ssanames_print_statistics): Use ISO function
        declaration.  Print unsigned ints, not usinged longs.

Index: tree-ssanames.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/Attic/tree-ssanames.c,v
retrieving revision 1.1.2.1
diff -c -3 -p -r1.1.2.1 tree-ssanames.c
*** tree-ssanames.c	19 Nov 2003 20:10:02 -0000	1.1.2.1
--- tree-ssanames.c	20 Nov 2003 11:48:44 -0000
*************** fini_ssanames (void)
*** 93,102 ****
  
  #ifdef GATHER_STATISTICS
  void
! ssanames_print_statistics ()
  {
!   fprintf (stderr, "SSA_NAME nodes allocated: %lu\n", ssa_name_nodes_created);
!   fprintf (stderr, "SSA_NAME nodes reused: %lu\n", ssa_name_nodes_reused);
  }
  #endif
  
--- 93,102 ----
  
  #ifdef GATHER_STATISTICS
  void
! ssanames_print_statistics (void)
  {
!   fprintf (stderr, "SSA_NAME nodes allocated: %u\n", ssa_name_nodes_created);
!   fprintf (stderr, "SSA_NAME nodes reused: %u\n", ssa_name_nodes_reused);
  }
  #endif
  


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