aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Novillo <dnovillo@redhat.com>2004-07-13 20:39:09 +0000
committerDiego Novillo <dnovillo@gcc.gnu.org>2004-07-13 16:39:09 -0400
commit2aaf3dd5b4816386c0a5df81745abba238a99e01 (patch)
tree93de77e4ac738039becdbd18cbe1f5432c28908d
parent6c6dd4bd12c4b6a99bce85f9873d95c0d5859522 (diff)
downloadgcc-2aaf3dd5b4816386c0a5df81745abba238a99e01.zip
gcc-2aaf3dd5b4816386c0a5df81745abba238a99e01.tar.gz
gcc-2aaf3dd5b4816386c0a5df81745abba238a99e01.tar.bz2
tree-optimize.c (execute_todo): Flush DUMP_FILE before verification.
* tree-optimize.c (execute_todo): Flush DUMP_FILE before verification. From-SVN: r84639
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/tree-optimize.c10
2 files changed, 13 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index ca219cb..8febe2a 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2004-07-13 Diego Novillo <dnovillo@redhat.com>
+
+ * tree-optimize.c (execute_todo): Flush DUMP_FILE before
+ verification.
+
2004-07-13 Ulrich Weigand <uweigand@de.ibm.com>
* config/s390/s390.c (s390_gimplify_va_arg): Use size_int instead
diff --git a/gcc/tree-optimize.c b/gcc/tree-optimize.c
index e8c951b..d66c1b9 100644
--- a/gcc/tree-optimize.c
+++ b/gcc/tree-optimize.c
@@ -353,8 +353,14 @@ execute_todo (unsigned int flags)
}
if ((flags & TODO_dump_func) && dump_file)
- dump_function_to_file (current_function_decl,
- dump_file, dump_flags);
+ {
+ dump_function_to_file (current_function_decl,
+ dump_file, dump_flags);
+
+ /* Flush the file. If verification fails, we won't be able to
+ close the file before aborting. */
+ fflush (dump_file);
+ }
if (flags & TODO_ggc_collect)
ggc_collect ();