diff options
author | David Malcolm <dmalcolm@redhat.com> | 2020-10-27 09:50:24 -0400 |
---|---|---|
committer | David Malcolm <dmalcolm@redhat.com> | 2020-10-27 09:50:24 -0400 |
commit | ea0ae4e77a89d4a0492dcbbc13e9cbc19bcc2361 (patch) | |
tree | 42019951ea2bf0c9fd409a95706e6f5eed66258d | |
parent | 01079b6a9236bd467b445fafaff2659840789a85 (diff) | |
download | gcc-ea0ae4e77a89d4a0492dcbbc13e9cbc19bcc2361.zip gcc-ea0ae4e77a89d4a0492dcbbc13e9cbc19bcc2361.tar.gz gcc-ea0ae4e77a89d4a0492dcbbc13e9cbc19bcc2361.tar.bz2 |
analyzer: fix param "analyzer-max-enodes-per-program-point"
This was effectively checking for one beyond the limit, rather than
the limit itself.
Seen when fixing PR analyzer/97514.
gcc/analyzer/ChangeLog:
* engine.cc (exploded_graph::get_or_create_node): Fix off-by-one
when imposing param_analyzer_max_enodes_per_program_point limit.
-rw-r--r-- | gcc/analyzer/engine.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/analyzer/engine.cc b/gcc/analyzer/engine.cc index d4c654a..be54f02 100644 --- a/gcc/analyzer/engine.cc +++ b/gcc/analyzer/engine.cc @@ -2100,7 +2100,7 @@ exploded_graph::get_or_create_node (const program_point &point, /* Impose a limit on the number of enodes per program point, and simply stop if we exceed it. */ if ((int)per_point_data->m_enodes.length () - > param_analyzer_max_enodes_per_program_point) + >= param_analyzer_max_enodes_per_program_point) { pretty_printer pp; point.print (&pp, format (false)); |