This patch fixes a bug with -fdump-analyzer, which is meant to write purely a dumpfile, but was erroneously sending part of the dump to stderr.
Successfully bootstrapped & regrtested on x86_64-pc-linux-gnu. Pushed to master as f2ca2088bc393a7d3d8eef4ff85cbe949db3cde0. gcc/analyzer/ChangeLog: * engine.cc (exploded_graph::get_or_create_node): Dump the program_state to the pp, rather than to stderr. --- gcc/analyzer/engine.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/analyzer/engine.cc b/gcc/analyzer/engine.cc index 7f8a4223eed..45578f5111f 100644 --- a/gcc/analyzer/engine.cc +++ b/gcc/analyzer/engine.cc @@ -1866,7 +1866,7 @@ exploded_graph::get_or_create_node (const program_point &point, logger->end_log_line (); logger->start_log_line (); pp_string (pp, "state: "); - state.dump (m_ext_state, true); + state.dump_to_pp (m_ext_state, true, pp); logger->end_log_line (); } -- 2.21.0