re PR tree-optimization/31847 (Printing to dump file broken)

2007-05-08  Simon Martin  <simartin@users.sourceforge.net>

	PR 31847
	* tree-dump.c (dump_options): Don't use TDF_DIAGNOSTIC in "*-all" tree
	dumps.

From-SVN: r124551
This commit is contained in:
Simon Martin 2007-05-08 15:33:56 +00:00 committed by Simon Martin
parent a34437a1da
commit bfa64d0e60
4 changed files with 27 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2007-05-08 Simon Martin <simartin@users.sourceforge.net>
PR 31847
* tree-dump.c (dump_options): Don't use TDF_DIAGNOSTIC in "*-all" tree
dumps.
2007-05-08 Sandra Loosemore <sandra@codesourcery.com>
Nigel Stephens <nigel@mips.com>

View File

@ -1,3 +1,8 @@
2007-05-08 Simon Martin <simartin@users.sourceforge.net>
PR 31847
* gcc.dg/pr31847.c: New test.
2007-05-08 Paul Thomas <pault@gcc.gnu.org>
PR fortran/31692

View File

@ -0,0 +1,15 @@
/* PR 31847 */
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-pre-all" } */
extern int bar(int);
int foo()
{
int a = 0;
return bar(a);
}
/* { dg-final { scan-tree-dump-not "Created value for " "pre"} } */
/* { dg-final { cleanup-tree-dump "pre" } } */

View File

@ -803,7 +803,7 @@ static const struct dump_option_value_info dump_options[] =
{"stmtaddr", TDF_STMTADDR},
{"memsyms", TDF_MEMSYMS},
{"all", ~(TDF_RAW | TDF_SLIM | TDF_LINENO | TDF_TREE | TDF_RTL | TDF_IPA
| TDF_STMTADDR | TDF_GRAPH)},
| TDF_STMTADDR | TDF_GRAPH | TDF_DIAGNOSTIC)},
{NULL, 0}
};