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]

Re: Patch checked in for prototypes, etc.


 > From: Richard Henderson <rth@cygnus.com>
 >  
 > On Wed, Oct 06, 1999 at 10:49:15AM -0400, Kaveh R. Ghazi wrote:
 > > -void
 > > +#ifdef ENABLE_CHECKING
 > > +static void
 > >  verify_flow_info ()
 >  
 > No.  This function was public so that we wouldn't complain about
 > it being unused, and it is not conditionally compiled so that I
 > can call it from the debugger.
 > r~

Okay I understand, fixed.



Index: ChangeLog
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/ChangeLog,v
retrieving revision 1.4599
diff -u -p -r1.4599 ChangeLog
--- ChangeLog	1999/10/06 20:20:13	1.4599
+++ ChangeLog	1999/10/06 21:21:07
@@ -1,3 +1,7 @@
+Wed Oct  6 17:17:08 1999  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+	* flow.c (verify_flow_info): Make it extern & unconditionally define.
+
 1999-10-06  Brendan Kehoe  <brendan@cygnus.com>
 
 	* sparc/sp86x-elf.h (SUBTARGET_SWITCHES): Add missing doc
Index: flow.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/flow.c,v
retrieving revision 1.165
diff -u -p -r1.165 flow.c
--- flow.c	1999/10/06 14:48:38	1.165
+++ flow.c	1999/10/06 21:21:15
@@ -354,15 +354,17 @@ static int maybe_add_dead_note		PROTO ((
 static int sets_reg_or_subreg		PROTO ((rtx, rtx));
 static void update_n_sets 		PROTO ((rtx, int));
 static void new_insn_dead_notes		PROTO ((rtx, rtx, rtx, rtx, rtx, rtx));
-#ifdef ENABLE_CHECKING
-static void verify_flow_info		PROTO ((void));
-#endif
 static void split_hard_reg_notes	PROTO ((rtx, rtx, rtx, rtx));
 static rtx find_insn_with_note		PROTO ((rtx, rtx, rtx));
 static void sets_reg_or_subreg_1	PROTO ((rtx, rtx));
 static rtx prepend_reg_notes		PROTO ((rtx, rtx));
 static void remove_edge			PROTO ((edge));
 static void remove_fake_successors	PROTO ((basic_block));
+
+/* This function is always defined so it can be called from the
+   debugger, and it is declared extern so we don't get warnings about
+   it being unused. */
+extern void verify_flow_info PROTO ((void));
 
 /* Find basic blocks of the current function.
    F is the first insn of the function and NREGS the number of register
@@ -6480,8 +6482,7 @@ replace_insns (first, last, first_new, n
    In future it can be extended check a lot of other stuff as well
    (reachability of basic blocks, life information, etc. etc.).  */
 
-#ifdef ENABLE_CHECKING
-static void
+void
 verify_flow_info ()
 {
   const int max_uid = get_max_uid ();
@@ -6684,7 +6685,6 @@ verify_flow_info ()
       x = NEXT_INSN (x);
     }
 }
-#endif
 
 /* Functions to access an edge list with a vector representation.
    Enough data is kept such that given an index number, the 


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