verify_flow_info patch for bb-reorder.c

Jeffrey A Law law@cygnus.com
Fri Mar 24 16:03:00 GMT 2000


  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



More information about the Gcc-patches mailing list