This is the mail archive of the
mailing list for the GCC project.
Re: Divorce of return warnings
- From: Richard Henderson <rth at redhat dot com>
- To: Jan Hubicka <jh at suse dot cz>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Fri, 13 May 2005 12:52:08 -0700
- Subject: Re: Divorce of return warnings
- References: <20050513192534.GF9157@kam.mff.cuni.cz>
On Fri, May 13, 2005 at 09:25:34PM +0200, Jan Hubicka wrote:
> * tree-cfg.c (execute_warn_function_return): Break out noreturn
> warning too..
> (execute_warn_function_noreturn): ... here.
> (pass_warn_function_noreturn): New pass.
> * tree-pass.h (pass_warn_function_noreturn): Declare
> * tree-optimize.c (init_tree_optimization_passes): Move return
> warnings early and add noreturn warnings at place of previous
> return warnings.
I suppose the common cases are "have a return", "have an abort"
and "have a while (1) loop", none of which are really affected
Since this "pass" doesn't iterate or anything, I don't see the
need to move the warning flag test out to a gate function.