https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89946
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Tue Apr 30 21:03:11 2019 New Revision: 270749 URL: https://gcc.gnu.org/viewcvs?rev=270749&root=gcc&view=rev Log: Backported from mainline 2019-04-12 Jakub Jelinek <ja...@redhat.com> PR c/89946 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p and gcc_unreachable if it fails, just call tree_to_uhwi which verifies that too. Test TREE_CHAIN instead of list_length > 1. Start warning message with a lower-case letter. Formatting fixes. * c-attribs.c (handle_patchable_function_entry_attribute): Add function comment. Warn if arguments of the attribute are not positive integer constants. * c-c++-common/pr89946.c: New test. Added: branches/gcc-8-branch/gcc/testsuite/c-c++-common/pr89946.c Modified: branches/gcc-8-branch/gcc/ChangeLog branches/gcc-8-branch/gcc/c-family/ChangeLog branches/gcc-8-branch/gcc/c-family/c-attribs.c branches/gcc-8-branch/gcc/testsuite/ChangeLog branches/gcc-8-branch/gcc/varasm.c