diff options
author | Diego Novillo <dnovillo@redhat.com> | 2004-07-13 20:39:09 +0000 |
---|---|---|
committer | Diego Novillo <dnovillo@gcc.gnu.org> | 2004-07-13 16:39:09 -0400 |
commit | 2aaf3dd5b4816386c0a5df81745abba238a99e01 (patch) | |
tree | 93de77e4ac738039becdbd18cbe1f5432c28908d /gcc/tree-optimize.c | |
parent | 6c6dd4bd12c4b6a99bce85f9873d95c0d5859522 (diff) | |
download | gcc-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
Diffstat (limited to 'gcc/tree-optimize.c')
-rw-r--r-- | gcc/tree-optimize.c | 10 |
1 files changed, 8 insertions, 2 deletions
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 (); |