From: Simon Martin Date: Tue, 8 May 2007 15:33:56 +0000 (+0000) Subject: re PR tree-optimization/31847 (Printing to dump file broken) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bfa64d0e608e259094fc46674a0b430d1fa7970f;p=gcc.git re PR tree-optimization/31847 (Printing to dump file broken) 2007-05-08 Simon Martin PR 31847 * tree-dump.c (dump_options): Don't use TDF_DIAGNOSTIC in "*-all" tree dumps. From-SVN: r124551 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d0753beaa78..a28475a8b7f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2007-05-08 Simon Martin + + PR 31847 + * tree-dump.c (dump_options): Don't use TDF_DIAGNOSTIC in "*-all" tree + dumps. + 2007-05-08 Sandra Loosemore Nigel Stephens diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 1542977aced..bbda63cf781 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2007-05-08 Simon Martin + + PR 31847 + * gcc.dg/pr31847.c: New test. + 2007-05-08 Paul Thomas PR fortran/31692 diff --git a/gcc/testsuite/gcc.dg/pr31847.c b/gcc/testsuite/gcc.dg/pr31847.c new file mode 100644 index 00000000000..4b945a994aa --- /dev/null +++ b/gcc/testsuite/gcc.dg/pr31847.c @@ -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" } } */ diff --git a/gcc/tree-dump.c b/gcc/tree-dump.c index ea8f378d2d1..16f71df2028 100644 --- a/gcc/tree-dump.c +++ b/gcc/tree-dump.c @@ -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} };