analyzer: show program point in -Wanalyzer-too-complex

I found this useful when debugging.

gcc/analyzer/ChangeLog:
	* engine.cc (exploded_graph::get_or_create_node): Show the
	program point when issuing -Wanalyzer-too-complex due to hitting
	the per-program-point limit.
This commit is contained in:
David Malcolm 2020-09-15 09:57:36 -04:00
parent e097c9ab83
commit 6dd96e24ea

View file

@ -1982,6 +1982,7 @@ exploded_graph::get_or_create_node (const program_point &point,
> param_analyzer_max_enodes_per_program_point)
{
pretty_printer pp;
point.print (&pp, format (false));
print_enode_indices (&pp, per_point_data->m_enodes);
if (logger)
logger->log ("not creating enode; too many at program point: %s",