PR c/89340
	* c-decl.c (start_function): Clear TREE_PUBLIC on nested functions
	before c_decl_attributes rather than after it.

	* gcc.dg/pr89340.c: New test.
	* gcc.dg/torture/pr57036-2.c (jpgDecode_convert): Expect a warning
	that leaf attribute on nested function is useless.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@268926 138bc75d-0d04-0410-961f-82ee72b054a4
5 files changed