projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e097c9a
)
analyzer: show program point in -Wanalyzer-too-complex
author
David Malcolm
<dmalcolm@redhat.com>
Tue, 15 Sep 2020 13:57:36 +0000
(09:57 -0400)
committer
David Malcolm
<dmalcolm@redhat.com>
Wed, 16 Sep 2020 22:58:51 +0000
(18:58 -0400)
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.
gcc/analyzer/engine.cc
patch
|
blob
|
history
diff --git
a/gcc/analyzer/engine.cc
b/gcc/analyzer/engine.cc
index 49701b74fd402d7f1ca90ee27b5fd82f8cf6ef61..8f5c5143ca57af634e2852ac9b9de9fcee427908 100644
(file)
--- a/
gcc/analyzer/engine.cc
+++ b/
gcc/analyzer/engine.cc
@@
-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",