public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-4899] analyzer: fix ICE in sm_state_map::dump when dumping trees
@ 2021-11-04 13:33 David Malcolm
0 siblings, 0 replies; only message in thread
From: David Malcolm @ 2021-11-04 13:33 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:347682ea4637c57c386908d6e1aa52e4efaace53
commit r12-4899-g347682ea4637c57c386908d6e1aa52e4efaace53
Author: David Malcolm <dmalcolm@redhat.com>
Date: Thu Sep 9 14:32:14 2021 -0400
analyzer: fix ICE in sm_state_map::dump when dumping trees
gcc/analyzer/ChangeLog:
* program-state.cc (sm_state_map::dump): Use default_tree_printer
as format decoder.
Signed-off-by: David Malcolm <dmalcolm@redhat.com>
Diff:
---
gcc/analyzer/program-state.cc | 1 +
1 file changed, 1 insertion(+)
diff --git a/gcc/analyzer/program-state.cc b/gcc/analyzer/program-state.cc
index c1ff0d88bb8..8230140cec6 100644
--- a/gcc/analyzer/program-state.cc
+++ b/gcc/analyzer/program-state.cc
@@ -273,6 +273,7 @@ DEBUG_FUNCTION void
sm_state_map::dump (bool simple) const
{
pretty_printer pp;
+ pp_format_decoder (&pp) = default_tree_printer;
pp_show_color (&pp) = pp_show_color (global_dc->printer);
pp.buffer->stream = stderr;
print (NULL, simple, true, &pp);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-11-04 13:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-04 13:33 [gcc r12-4899] analyzer: fix ICE in sm_state_map::dump when dumping trees David Malcolm
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).