r260978 - in /trunk/gcc: c-family/ChangeLog c-f...

law@gcc.gnu.org law@gcc.gnu.org
Wed May 30 22:55:00 GMT 2018


Author: law
Date: Wed May 30 22:55:38 2018
New Revision: 260978

URL: https://gcc.gnu.org/viewcvs?rev=260978&root=gcc&view=rev
Log:
2018-05-30  David Pagan  <dave.pagan@oracle.com>

	PR c/55976
	* c-decl.c (grokdeclarator): Update check for return type warnings.
	(start_function): Likewise.
	(finish_function): Likewise.
	* c-typeck.c (c_finish_return): Update check for return type warnings.
	Pass OPT_Wreturn_type to pedwarn when appropriate.

	PR c/55976
	* c-opts.c (c_common_post_options): Set default for warn_return_type
	for C++/C++ with ObjC extensions only. For C, makes it possible to
	differentiate between default (no option), -Wreturn-type, and
	-Wno-return-type.

	PR c/55976
	* gcc.dg/noncompile/pr55976-1.c: New test.
	* gcc.dg/noncompile/pr55976-2.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/noncompile/pr55976-1.c
    trunk/gcc/testsuite/gcc.dg/noncompile/pr55976-2.c
Modified:
    trunk/gcc/c-family/ChangeLog
    trunk/gcc/c-family/c-opts.c
    trunk/gcc/c/ChangeLog
    trunk/gcc/c/c-decl.c
    trunk/gcc/c/c-typeck.c
    trunk/gcc/testsuite/ChangeLog



More information about the Gcc-cvs mailing list