re PR middle-end/25923 ([gfortran] garbled diagnostics with -O -Wuninitialized)
authorSimon Martin <simartin@users.sourceforge.net>
Tue, 24 Apr 2007 20:52:16 +0000 (20:52 +0000)
committerSimon Martin <simartin@gcc.gnu.org>
Tue, 24 Apr 2007 20:52:16 +0000 (20:52 +0000)
commit438d798f1231f01c92211c76df1cc3b4cf6904a4
tree8114578ec066c8fc958ebd7608cf29fdaca0d26e
parent4df28528f69a4400fed72d69792fc043d1ebd826
re PR middle-end/25923 ([gfortran] garbled diagnostics with -O -Wuninitialized)

2007-04-24  Simon Martin  <simartin@users.sourceforge.net>

PR diagnostic/25923
* tree-pass.h (TDF_DIAGNOSTIC): New dump control to specify that a
diagnostic message is being built.
* tree-pretty-print.c (dump_generic_node): Only write the formatted text
into BUFFER's stream if we are not building a diagnostic message.
* toplev.c (default_tree_printer): Pass TDF_DIAGNOSTIC to
dump_generic_node.
* Makefile.in (toplev.o): Depend on tree-pass.h.

From-SVN: r124121
gcc/ChangeLog
gcc/Makefile.in
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/pr25923.f90 [new file with mode: 0644]
gcc/toplev.c
gcc/tree-pass.h
gcc/tree-pretty-print.c