This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Move GCCBUGURL to version.c; add commentary


On 08-Oct-2002, Zack Weinberg <zack@codesourcery.com> wrote:
> To clarify, I did not mean to suggest that this information would no
> longer be provided.  What I had in mind was that the majority of the
> ICE message would be produced by diagnostic.c, but the Ada front end
> would define a callback which would allow it to report whatever
> additional information it wanted.  Contrast the present situation
> where the Ada front end prints the entire ICE message itself.

FWIW, there is a similar issue with the Mercury front-end,
where we want bug reports directed to a different mailing address.
That's the only change in the ICE message we need,
but to implement this we end up duplicating a few lines
of code to report the diagnostic.  This wouldn't be much
of a problem, except that those few lines of code seem to
change quite often.  To be honest, though, if the cure for
this duplication involves changing the front-end interface
then I'd say the cure would be worse than the disease.

static void
merc_handle_internal_error (msg, args)
  const char *msg;
  va_list *args;
{
  diagnostic_info diagnostic;

  diagnostic_set_info (&diagnostic, msg, args, input_filename, lineno,
                       DK_ICE);

  report_diagnostic (&diagnostic);

  fprintf (stderr,
  	   "Please submit a full bug report to <mercury-bugs@cs.mu.oz.au>.\n");
  exit (FATAL_EXIT_CODE);
}

-- 
Fergus Henderson <fjh@cs.mu.oz.au>  |  "I have always known that the pursuit
The University of Melbourne         |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]