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]
Other format: [Raw text]

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


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