r273635 - in /branches/gcc-9-branch/gcc: c/Chan...

rsandifo@gcc.gnu.org rsandifo@gcc.gnu.org
Sat Jul 20 18:50:00 GMT 2019


Author: rsandifo
Date: Sat Jul 20 18:50:20 2019
New Revision: 273635

URL: https://gcc.gnu.org/viewcvs?rev=273635&root=gcc&view=rev
Log:
Fix -Wreturn-type for static naked functions in C

This patch extends the fix for PR53633 to include static functions,
which were giving a bogus -Wreturn-type warning for C but not for C++.

2019-07-20  Richard Sandiford  <richard.sandiford@arm.com>

gcc/c/
	Backport from mainline
	2019-07-18  Richard Sandiford  <richard.sandiford@arm.com>

	PR c/53633
	* c-decl.c (finish_function): Check targetm.warn_func_return
	before issuing a -Wreturn-type warning.

gcc/testsuite/
	Backport from mainline
	2019-07-18  Richard Sandiford  <richard.sandiford@arm.com>

	* c-c++-common/pr53633-2.c: New test.

Added:
    branches/gcc-9-branch/gcc/testsuite/c-c++-common/pr53633-2.c
Modified:
    branches/gcc-9-branch/gcc/c/ChangeLog
    branches/gcc-9-branch/gcc/c/c-decl.c
    branches/gcc-9-branch/gcc/testsuite/ChangeLog



More information about the Gcc-cvs mailing list