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: verify_flow_info patch for bb-reorder.c



  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


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