This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/25923] [gfortran] garbled diagnostics with -O -Wuninitialized
- From: "simartin at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Apr 2007 20:52:27 -0000
- Subject: [Bug fortran/25923] [gfortran] garbled diagnostics with -O -Wuninitialized
- References: <bug-25923-2736@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from simartin at gcc dot gnu dot org 2007-04-24 21:52 -------
Subject: Bug 25923
Author: simartin
Date: Tue Apr 24 21:52:16 2007
New Revision: 124121
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=124121
Log:
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.
Added:
trunk/gcc/testsuite/gfortran.dg/pr25923.f90
Modified:
trunk/gcc/ChangeLog
trunk/gcc/Makefile.in
trunk/gcc/testsuite/ChangeLog
trunk/gcc/toplev.c
trunk/gcc/tree-pass.h
trunk/gcc/tree-pretty-print.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25923