This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/54928] Infinite output with after ICE with macro
- From: "manu at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 24 Oct 2012 22:01:54 +0000
- Subject: [Bug c++/54928] Infinite output with after ICE with macro
- Auto-submitted: auto-generated
- References: <bug-54928-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54928
--- Comment #10 from Manuel LÃpez-IbÃÃez <manu at gcc dot gnu.org> 2012-10-24 22:01:54 UTC ---
Author: manu
Date: Wed Oct 24 22:01:50 2012
New Revision: 192786
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=192786
Log:
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.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/ada/s-fore.ads
trunk/gcc/diagnostic.c
trunk/gcc/diagnostic.h
trunk/gcc/tree-diagnostic.c