This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
verify_flow_info patch for bb-reorder.c
- To: gcc-patches at gcc dot gnu dot org
- Subject: verify_flow_info patch for bb-reorder.c
- From: Brad Lucier <lucier at math dot purdue dot edu>
- Date: Mon, 20 Mar 2000 16:10:33 -0500 (EST)
- Cc: lucier at math dot purdue dot edu
flow.c says:
/* 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. */
void verify_flow_info PARAMS ((void));
So the comment appears to be wrong; I don't know whether to make it extern
or fix the comment.
Either way, we need a declaration of it in bb-reorder.c to get rid of
the message:
../../gcc/bb-reorder.c:784: warning: implicit declaration of function `verify_flow_info'
* bb-reorder.c (verify_flow_info): Declare.
rcsdiff -c bb-reorder.c
===================================================================
RCS file: RCS/bb-reorder.c,v
retrieving revision 1.1
diff -c -r1.1 bb-reorder.c
*** bb-reorder.c 2000/03/20 18:38:28 1.1
--- bb-reorder.c 2000/03/20 21:05:45
***************
*** 43,48 ****
--- 43,49 ----
#include "expr.h"
#include "obstack.h"
+ extern void verify_flow_info PARAMS ((void));
/* The contents of the current function definition are allocated
in this obstack, and all are freed at the end of the function.