From 2aaf3dd5b4816386c0a5df81745abba238a99e01 Mon Sep 17 00:00:00 2001 From: Diego Novillo Date: Tue, 13 Jul 2004 20:39:09 +0000 Subject: tree-optimize.c (execute_todo): Flush DUMP_FILE before verification. * tree-optimize.c (execute_todo): Flush DUMP_FILE before verification. From-SVN: r84639 --- gcc/ChangeLog | 5 +++++ gcc/tree-optimize.c | 10 ++++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) (limited to 'gcc') 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 + + * tree-optimize.c (execute_todo): Flush DUMP_FILE before + verification. + 2004-07-13 Ulrich Weigand * 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 (); -- cgit v1.1