This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: verify_flow_info patch for bb-reorder.c
- To: Brad Lucier <lucier at math dot purdue dot edu>
- Subject: Re: verify_flow_info patch for bb-reorder.c
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Fri, 24 Mar 2000 16:55:08 -0700
- cc: gcc-patches at gcc dot gnu dot org
- Reply-To: law at cygnus dot com
In message <200003202110.QAA28696@polya.math.purdue.edu>you write:
> 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.
Huh? The extern is implicit.
> 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 `veri
> fy_flow_info'
>
> * bb-reorder.c (verify_flow_info): Declare.
Instead the function should be prototyped in a .h file, basic-block.h most
likely and the extern declarations in .c files deleted.
jeff