[3.3 PATCH] Fix flow_bb_inside_loop_p prototype

Roger Sayle roger@www.eyesopen.com
Sun Feb 23 01:18:00 GMT 2003


On Sat, 22 Feb 2003, Eric Botcazou wrote:
> > The native cc compiler on Compaq/HP Tru64 complains that the
> > declaration of flow_bb_inside_loop_p in cfgloop.c doesn't match the
> > prototype given in basic-block.h.  The problem is that the bb
> > parameter is marked const in one and not in the other.
>
> Why not for 3.3 branch too? This is PR bootstrap/7389.

How about the following?  This patch is a backport of my 2002-12-18
fix to mainline.  I've retested it against the gcc-3_3-branch with
a complete bootstrap on i686-pc-linux-gnu.

Ok for the gcc 3.3 branch?


2003-02-22  Roger Sayle  <roger@eyesopen.com>

	PR bootstrap/7389
	* basic-block.h (flow_bb_inside_loop_p): Correct prototype.


Index: basic-block.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/basic-block.h,v
retrieving revision 1.161.4.2
diff -c -3 -p -r1.161.4.2 basic-block.h
*** basic-block.h	9 Jan 2003 12:40:44 -0000	1.161.4.2
--- basic-block.h	23 Feb 2003 00:08:40 -0000
*************** extern void free_aux_for_edges		PARAMS (
*** 749,756 ****
     it being unused.  */
  extern void verify_flow_info		PARAMS ((void));
  extern bool flow_loop_outside_edge_p	PARAMS ((const struct loop *, edge));
! extern bool flow_loop_nested_p PARAMS ((const struct loop *, const struct loop *));
! extern bool flow_bb_inside_loop_p       PARAMS ((const struct loop *, basic_block));
  extern basic_block *get_loop_body       PARAMS ((const struct loop *));
  extern int dfs_enumerate_from           PARAMS ((basic_block, int,
  				         bool (*)(basic_block, void *),
--- 749,758 ----
     it being unused.  */
  extern void verify_flow_info		PARAMS ((void));
  extern bool flow_loop_outside_edge_p	PARAMS ((const struct loop *, edge));
! extern bool flow_loop_nested_p		PARAMS ((const struct loop *,
! 						 const struct loop *));
! extern bool flow_bb_inside_loop_p	PARAMS ((const struct loop *,
! 						 const basic_block));
  extern basic_block *get_loop_body       PARAMS ((const struct loop *));
  extern int dfs_enumerate_from           PARAMS ((basic_block, int,
  				         bool (*)(basic_block, void *),

Roger
--
Roger Sayle,                         E-mail: roger@eyesopen.com
OpenEye Scientific Software,         WWW: http://www.eyesopen.com/
Suite 1107, 3600 Cerrillos Road,     Tel: (+1) 505-473-7385
Santa Fe, New Mexico, 87507.         Fax: (+1) 505-473-0833



More information about the Gcc-patches mailing list