aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAndrew Pinski <pinskia@physics.uc.edu>2005-07-01 15:21:09 +0000
committerAndrew Pinski <pinskia@gcc.gnu.org>2005-07-01 08:21:09 -0700
commit200bbdcecb3e471e65d56b6991ec7b0dfbc714a0 (patch)
treef84adf538e3ed72f3053f6b446533116529f0658 /gcc
parentc50367a23cc541ed6d68388a1f5654ec46ece75b (diff)
downloadgcc-200bbdcecb3e471e65d56b6991ec7b0dfbc714a0.zip
gcc-200bbdcecb3e471e65d56b6991ec7b0dfbc714a0.tar.gz
gcc-200bbdcecb3e471e65d56b6991ec7b0dfbc714a0.tar.bz2
parse.y (issue_warning_error_from_context): Call pp_output_formatted_text to be able to get the buffer.
2005-07-01 Andrew Pinski <pinskia@physics.uc.edu> * parse.y (issue_warning_error_from_context): Call pp_output_formatted_text to be able to get the buffer. From-SVN: r101505
Diffstat (limited to 'gcc')
-rw-r--r--gcc/java/ChangeLog7
-rw-r--r--gcc/java/parse.y1
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog
index 4c6dddb..3d5b221 100644
--- a/gcc/java/ChangeLog
+++ b/gcc/java/ChangeLog
@@ -1,4 +1,9 @@
-2005-06-29 Andrew Pinski <pinskia@physics.uc.edu>
+2005-07-01 Andrew Pinski <pinskia@physics.uc.edu>
+
+ * parse.y (issue_warning_error_from_context): Call
+ pp_output_formatted_text to be able to get the buffer.
+
+2005-06-30 Andrew Pinski <pinskia@physics.uc.edu>
* 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 6b7ec3f..b54917c 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);