analyzer: fix ICE when handling callback exceeds enode limit [PR97514]
authorDavid Malcolm <dmalcolm@redhat.com>
Thu, 22 Oct 2020 10:16:28 +0000 (06:16 -0400)
committerDavid Malcolm <dmalcolm@redhat.com>
Thu, 22 Oct 2020 10:16:28 +0000 (06:16 -0400)
commitf7decfaebbcb8522fcb39b03a391a5c2cb64f460
tree4404023a457a7decb2e44f45be88eef4d8b6404e
parent9ed7b339c97dffd6f491aeb7052d6601b9d01ae0
analyzer: fix ICE when handling callback exceeds enode limit [PR97514]

gcc/analyzer/ChangeLog:
PR analyzer/97514
* engine.cc (exploded_graph::add_function_entry): Handle failure
to create an enode, rather than asserting.

gcc/testsuite/ChangeLog:
PR analyzer/97514
* gcc.dg/analyzer/pr97514.c: New test.
gcc/analyzer/engine.cc
gcc/testsuite/gcc.dg/analyzer/pr97514.c [new file with mode: 0644]