This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix flow_bb_inside_loop_p prototype (take 2)
- From: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- To: Neil Booth <neil at daikokuya dot co dot uk>
- Cc: Roger Sayle <roger at www dot eyesopen dot com>, <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 5 Feb 2003 11:46:46 +0000 (GMT)
- Subject: Re: [PATCH] Fix flow_bb_inside_loop_p prototype (take 2)
On Wed, 5 Feb 2003, Neil Booth wrote:
> Roger Sayle wrote:-
>
> >
> > Mainline CVS fails to bootstrap with the native Tru64 C compiler,
> > as it complains the the declaration of flow_bb_inside_loop_p in
> > cfgloop.c doesn't match the prototype in cfgloop.h. The problem
> > is that the bb parameter is marked const in one and not in the
> > other.
>
> Perhaps this is something GCC should warn about?
Not warning is in accordance with 6.7.5.3#15, but being inconsistent here
may still be considered "bad practice" and worth a warning under some
warning option (given that this other compiler rejects it).
--
Joseph S. Myers
jsm28@cam.ac.uk