aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorSimon Martin <simartin@users.sourceforge.net>2007-05-08 15:33:56 +0000
committerSimon Martin <simartin@gcc.gnu.org>2007-05-08 15:33:56 +0000
commitbfa64d0e608e259094fc46674a0b430d1fa7970f (patch)
tree42f685d16b06a1ca7ecfc56de73944b36e31fc69 /gcc
parenta34437a1da009486cdd38e8ea74b3d0c42022a10 (diff)
downloadgcc-bfa64d0e608e259094fc46674a0b430d1fa7970f.zip
gcc-bfa64d0e608e259094fc46674a0b430d1fa7970f.tar.gz
gcc-bfa64d0e608e259094fc46674a0b430d1fa7970f.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/gcc.dg/pr31847.c15
-rw-r--r--gcc/tree-dump.c2
4 files changed, 27 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index d0753be..a28475a 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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>
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 1542977..bbda63c 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -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
diff --git a/gcc/testsuite/gcc.dg/pr31847.c b/gcc/testsuite/gcc.dg/pr31847.c
new file mode 100644
index 0000000..4b945a9
--- /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 ea8f378..16f71df 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}
};