This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: RFC: Killing "no return statement in function returning non-void"
- From: Jan Hubicka <hubicka at ucw dot cz>
- To: Richard Henderson <rth at redhat dot com>, Jan Hubicka <jh at suse dot cz>,gcc-patches at gcc dot gnu dot org
- Date: Sun, 19 Jun 2005 19:43:28 +0200
- Subject: Re: RFC: Killing "no return statement in function returning non-void"
- References: <20050619161845.GH8728@kam.mff.cuni.cz> <20050619162912.GA20078@redhat.com>
> 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~