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: RFC: Killing "no return statement in function returning non-void"


> On Sun, Jun 19, 2005 at 06:18:45PM +0200, Jan Hubicka wrote:
> > The warning is currently enabled
> > only on inline functions and since cfg inliner rewrite the usual CFG
> > based warning is executed too, so I think this warning is completely
> > redundant.  What would you think of removing it and updating testsuite
> > accordingly for the new warning?
> 
> I don't have a problem with that.  It was a hack until we had proper
> CFG data at the right place.

We've had some discussion with Roger offline.  There is still a
difference for inlinable functions that gets elliminated completely (so
they never get lowered), but same problem is with other warnings of this
kind, so unless Roger or someone else speaks up, I will prepare real
patch for this (probably on the way to summit tought)

Honza
> 
> 
> r~


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