This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Don't warn about missing noreturn for main
- To: Andreas Jaeger <aj at suse dot de>
- Subject: Re: Don't warn about missing noreturn for main
- From: Richard Henderson <rth at redhat dot com>
- Date: Mon, 1 Jan 2001 21:23:49 -0800
- Cc: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>, gcc-patches at gcc dot gnu dot org
- References: <Pine.LNX.4.30.0012311635420.19974-100000@kern.srcf.societies.cam.ac.uk> <u8ofxr5k2r.fsf@gromit.rhein-neckar.de>
> * cp/decl.c (cp_missing_noreturn_ok_p): New.
> (init_decl_processing): Set lang_missing_noreturn_ok_p.
> * c-decl.c (c_decode_option): Remove support of
> -Wmissing-noreturn.
> * toplev.c (documented_lang_options): Remove -Wmissing-noreturn.
> (W_options): Add -Wmissing-noreturn here.
> * flow.c: Define lang_missing_noreturn_ok_p.
> (check_function_return_warnings): Use it.
> * c-common.h: Declare lang_missing_noreturn_ok_p.
> * c-lang.c (c_missing_noreturn_ok_p): New function.
> (lang_init): Set lang_missing_noreturn_ok_p.
> * invoke.texi (Warning Options): Document this.
> * gcc.dg/noreturn-3.c: New test.
> * gcc.dg/noreturn-4.c: New test.
Ok.
r~