re PR c++/54928 (Infinite output with after ICE with macro)
authorManuel López-Ibáñez <manu@gcc.gnu.org>
Wed, 24 Oct 2012 22:01:50 +0000 (22:01 +0000)
committerManuel López-Ibáñez <manu@gcc.gnu.org>
Wed, 24 Oct 2012 22:01:50 +0000 (22:01 +0000)
commitdfa3226153fbfe4999f2af6d916fd597e1d5ce3e
tree583600b9236c0cc119d94c2ca69748fab0849e77
parent093183112063759e754e67fc60d80458e4133692
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
gcc/ChangeLog
gcc/diagnostic.c
gcc/diagnostic.h
gcc/tree-diagnostic.c