[Bug c/89340] [7/8/9 Regression] ICE in function_and_variable_visibility, at ipa-visibility.c:707
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Feb 15 07:38:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89340
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri Feb 15 07:38:09 2019
New Revision: 268926
URL: https://gcc.gnu.org/viewcvs?rev=268926&root=gcc&view=rev
Log:
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.
Added:
trunk/gcc/testsuite/gcc.dg/pr89340.c
Modified:
trunk/gcc/c/ChangeLog
trunk/gcc/c/c-decl.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/gcc.dg/torture/pr57036-2.c
More information about the Gcc-bugs
mailing list