aboutsummaryrefslogtreecommitdiff
path: root/gcc/diagnostic.h
diff options
context:
space:
mode:
authorManuel López-Ibáñez <manu@gcc.gnu.org>2012-10-24 22:01:50 +0000
committerManuel López-Ibáñez <manu@gcc.gnu.org>2012-10-24 22:01:50 +0000
commitdfa3226153fbfe4999f2af6d916fd597e1d5ce3e (patch)
tree583600b9236c0cc119d94c2ca69748fab0849e77 /gcc/diagnostic.h
parent093183112063759e754e67fc60d80458e4133692 (diff)
downloadgcc-dfa3226153fbfe4999f2af6d916fd597e1d5ce3e.zip
gcc-dfa3226153fbfe4999f2af6d916fd597e1d5ce3e.tar.gz
gcc-dfa3226153fbfe4999f2af6d916fd597e1d5ce3e.tar.bz2
re PR c++/54928 (Infinite output with after ICE with macro)
2012-10-24 Manuel López-Ibáñez <manu@gcc.gnu.org> PR c++/54928 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Use diagnostic_append_note. * diagnostic.c (diagnostic_build_prefix): Make diagnostic const. (default_diagnostic_finalizer): Do not destroy prefix here. (diagnostic_report_diagnostic): Destroy it here. (diagnostic_append_note): New. * diagnostic.h (diagnostic_append_note): Declare. From-SVN: r192786
Diffstat (limited to 'gcc/diagnostic.h')
-rw-r--r--gcc/diagnostic.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/diagnostic.h b/gcc/diagnostic.h
index 976754e..e1d2146 100644
--- a/gcc/diagnostic.h
+++ b/gcc/diagnostic.h
@@ -282,8 +282,10 @@ extern void diagnostic_set_info_translated (diagnostic_info *, const char *,
va_list *, location_t,
diagnostic_t)
ATTRIBUTE_GCC_DIAG(2,0);
+extern void diagnostic_append_note (diagnostic_context *, location_t,
+ const char *, ...) ATTRIBUTE_GCC_DIAG(3,4);
#endif
-extern char *diagnostic_build_prefix (diagnostic_context *, diagnostic_info *);
+extern char *diagnostic_build_prefix (diagnostic_context *, const diagnostic_info *);
void default_diagnostic_starter (diagnostic_context *, diagnostic_info *);
void default_diagnostic_finalizer (diagnostic_context *, diagnostic_info *);
void diagnostic_set_caret_max_width (diagnostic_context *context, int value);