From 200bbdcecb3e471e65d56b6991ec7b0dfbc714a0 Mon Sep 17 00:00:00 2001 From: Andrew Pinski Date: Fri, 1 Jul 2005 15:21:09 +0000 Subject: [PATCH] parse.y (issue_warning_error_from_context): Call pp_output_formatted_text to be able to get the buffer. 2005-07-01 Andrew Pinski * parse.y (issue_warning_error_from_context): Call pp_output_formatted_text to be able to get the buffer. From-SVN: r101505 --- gcc/java/ChangeLog | 7 ++++++- gcc/java/parse.y | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index 4c6dddbf2fe..3d5b22159cd 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,4 +1,9 @@ -2005-06-29 Andrew Pinski +2005-07-01 Andrew Pinski + + * parse.y (issue_warning_error_from_context): Call + pp_output_formatted_text to be able to get the buffer. + +2005-06-30 Andrew Pinski * parse.y (issue_warning_error_from_context): Update for the renaming of pp_format_text to pp_format. diff --git a/gcc/java/parse.y b/gcc/java/parse.y index 6b7ec3f4dca..b54917cde63 100644 --- a/gcc/java/parse.y +++ b/gcc/java/parse.y @@ -3142,6 +3142,7 @@ issue_warning_error_from_context ( text.args_ptr = ap; text.format_spec = gmsgid; pp_format (global_dc->printer, &text); + pp_output_formatted_text (global_dc->printer); strncpy (buffer, pp_formatted_text (global_dc->printer), sizeof (buffer) - 1); buffer[sizeof (buffer) - 1] = '\0'; pp_clear_output_area (global_dc->printer); -- 2.30.2