diff options
author | Steven Bosscher <steven@gcc.gnu.org> | 2012-08-07 22:14:29 +0000 |
---|---|---|
committer | Steven Bosscher <steven@gcc.gnu.org> | 2012-08-07 22:14:29 +0000 |
commit | f8923f7ead7d79efb6971dfb645d137ed8c2c649 (patch) | |
tree | bbf26213eed7cd6f579798de7efa91d85e8507d0 /gcc/diagnostic.c | |
parent | 4ccaeceec0087063f1a62e2e013378c354f954f2 (diff) | |
download | gcc-f8923f7ead7d79efb6971dfb645d137ed8c2c649.zip gcc-f8923f7ead7d79efb6971dfb645d137ed8c2c649.tar.gz gcc-f8923f7ead7d79efb6971dfb645d137ed8c2c649.tar.bz2 |
cfg.c (debug_bb): Do not set TDF_BLOCKS.
gcc/
* cfg.c (debug_bb): Do not set TDF_BLOCKS.
* cfghooks.c (dump_bb): Honor ~TDF_BLOCKS.
* pretty-print.c (pp_base_flush): Do not add a newline, and do not
clear pp_needs_newline.
* pretty-print.h (pp_newline_and_flush): New macro with the behavior
of pp_base_flush before the above change.
* langhooks.c (lhd_print_error_function): Use pp_newline_and_flush
instead of pp_flush.
* diagnostic.c (diagnostic_finish): Likewise.
(diagnostic_report_diagnostic): Likewise.
(verbatim): Likewise.
(error_recursion): Likewise.
* tree-pretty-print.c (print_generic_stmt): Likewise.
(print_generic_stmt_indented): LIkewise.
* gimple-pretty-print.c (print_gimple_stmt): Likewise.
(print_gimple_seq): Likewise.
(gimple_dump_bb_buff): Likewise.
c-family/
* c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
instead of separate pp_newline and pp_flush.
(print_c_tree): Likewise.
cp/
* error.c (print_instantiation_context): Pretty-print a newline before
diagnostic_flush_buffer.
* cxx-pretty-print.c (pp_cxx_function_definition): Use
pp_newline_and_flush instead of separate pp_newline and pp_flush.
testsuite/
* gcc.dg/tree-prof/update-loopch.c: Ask for dump with blocks info.
* gcc.dg/tree-ssa/attr-hotcold-2.c: Likewise.
* gcc.dg/tree-ssa/pr18133-1.c: Likewise.
From-SVN: r190215
Diffstat (limited to 'gcc/diagnostic.c')
-rw-r--r-- | gcc/diagnostic.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/diagnostic.c b/gcc/diagnostic.c index 4913eed..b3ae86c 100644 --- a/gcc/diagnostic.c +++ b/gcc/diagnostic.c @@ -172,7 +172,7 @@ diagnostic_finish (diagnostic_context *context) pp_verbatim (context->printer, _("%s: some warnings being treated as errors"), progname); - pp_flush (context->printer); + pp_newline_and_flush (context->printer); } } @@ -530,7 +530,7 @@ diagnostic_report_diagnostic (diagnostic_context *context, try to flush out the previous error, then let this one through. Don't do this more than once. */ if (diagnostic->kind == DK_ICE && context->lock == 1) - pp_flush (context->printer); + pp_newline_and_flush (context->printer); else error_recursion (context); } @@ -650,7 +650,7 @@ diagnostic_report_diagnostic (diagnostic_context *context, pp_output_formatted_text (context->printer); diagnostic_show_locus (context, diagnostic); (*diagnostic_finalizer (context)) (context, diagnostic); - pp_flush (context->printer); + pp_newline_and_flush (context->printer); diagnostic_action_after_output (context, diagnostic); diagnostic->message.format_spec = saved_format_spec; diagnostic->x_data = NULL; @@ -708,7 +708,7 @@ verbatim (const char *gmsgid, ...) text.locus = NULL; text.x_data = NULL; pp_format_verbatim (global_dc->printer, &text); - pp_flush (global_dc->printer); + pp_newline_and_flush (global_dc->printer); va_end (ap); } @@ -986,7 +986,7 @@ error_recursion (diagnostic_context *context) diagnostic_info diagnostic; if (context->lock < 3) - pp_flush (context->printer); + pp_newline_and_flush (context->printer); fnotice (stderr, "Internal compiler error: Error reporting routines re-entered.\n"); |