re PR c/89946 (ICE in assemble_start_function, at varasm.c:1871)
authorJakub Jelinek <jakub@redhat.com>
Fri, 12 Apr 2019 07:28:35 +0000 (09:28 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 12 Apr 2019 07:28:35 +0000 (09:28 +0200)
commit8e8225e69d1173cf0095a59ccf9bad219d016cdd
treef7af5b463b314e35498410d956c116c93deeeae3
parentc758576accc3eef33c31766352453b0ad1953569
re PR c/89946 (ICE in assemble_start_function, at varasm.c:1871)

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-family/
* c-attribs.c (handle_patchable_function_entry_attribute): Add
function comment.  Warn if arguments of the attribute are not positive
integer constants.
testsuite/
* c-c++-common/pr89946.c: New test.

From-SVN: r270305
gcc/ChangeLog
gcc/c-family/ChangeLog
gcc/c-family/c-attribs.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/pr89946.c [new file with mode: 0644]
gcc/varasm.c