From b313a0fe15d7f5953f87141c49786a8eccb90683 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Thu, 5 Oct 2000 23:01:27 -0700 Subject: c-decl.c (warn_missing_noreturn): Remove. * c-decl.c (warn_missing_noreturn): Remove. (c_expand_body): Don't set or check can_reach_end. * c-tree.h (warn_missing_noreturn): Move ... * flags.h: ... here. (can_reach_end): Remove. * flow.c (check_function_return_warnings): New. (make_edges): No edge to exit for noreturn sibcalls. * function.c (expand_function_end): Save the return value clobber instruction. (mark_function_status): Mark it. * function.h (struct function): Add x_clobber_return_insn. * jump.c (can_reach_end): Remove. (calculate_can_reach_end): Remove. (jump_optimize_1): Don't call it. * output.h (check_function_return_warnings): Declare. * toplev.c (warn_missing_noreturn): Move from c-decl.c (rest_of_compilation): Call check_function_return_warnings. From-SVN: r36750 --- gcc/c-tree.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'gcc/c-tree.h') diff --git a/gcc/c-tree.h b/gcc/c-tree.h index 5531731..b8adce1 100644 --- a/gcc/c-tree.h +++ b/gcc/c-tree.h @@ -342,10 +342,6 @@ extern int warn_cast_qual; extern int warn_bad_function_cast; -/* Warn about functions which might be candidates for attribute noreturn. */ - -extern int warn_missing_noreturn; - /* Warn about traditional constructs whose meanings changed in ANSI C. */ extern int warn_traditional; -- cgit v1.1