public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Re: Different language frontends and fancy_abort()
@ 2001-01-02  2:07 Richard Kenner
  2001-01-02  3:11 ` Fergus Henderson
  0 siblings, 1 reply; 8+ messages in thread
From: Richard Kenner @ 2001-01-02  2:07 UTC (permalink / raw)
  To: fjh; +Cc: gcc-patches, gcc

We already have a facility for a front-end to produce its own ICE messages.
Ada has been using it for quite a while.

^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re: Different language frontends and fancy_abort()
@ 2001-01-02 10:55 Richard Kenner
  0 siblings, 0 replies; 8+ messages in thread
From: Richard Kenner @ 2001-01-02 10:55 UTC (permalink / raw)
  To: jsm28; +Cc: gcc

    Surely when the Pascal front end is part of GCC, bug reports for it should
    go to the GCC GNATS database as with the rest of GCC (and GNATS can then
    send them - identified with category "pascal" - on to a separate
    pascal-bugs@gcc.gnu.org or similar list, if desired)?

That's a very different issue.  Even if the bugs go to the same place,
the information that a front can produce in explaining the location of the
bug can vary greatly.   The Ada front end takes advantage of this to list
the files that need to be included to reproduce the bug, for example.

^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re: Different language frontends and fancy_abort()
@ 2001-01-02  3:19 Richard Kenner
  0 siblings, 0 replies; 8+ messages in thread
From: Richard Kenner @ 2001-01-02  3:19 UTC (permalink / raw)
  To: fjh; +Cc: gcc-patches, gcc

    I suppose you mean set_fatal_function() in diagnostic.c?

Yes.

    That doesn't solve the problem, because (*fatal_function)() is not
    called in this case.  (*fatal_function)() is only called from
    fatal(), not from abort(), fancy_abort(), or finish_abort().

See this change:

    Sat Dec 16 10:41:11 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>

	* diagnostic.c (finish_abort): Deleted.
	(fatal): Add code from finish_abort.
	(error_recursion, fancy_abort): Call fatal, not finish_abort.

    Are you suggesting that I use the `fatal_function' hook
    rather than adding a new `lang_handle_ICE' hook?

Yes.  That's what it's there for!

^ permalink raw reply	[flat|nested] 8+ messages in thread
* Different language frontends and fancy_abort()
@ 2001-01-01 18:49 Peter Gerwinski
  2001-01-01 23:02 ` Fergus Henderson
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Peter Gerwinski @ 2001-01-01 18:49 UTC (permalink / raw)
  To: gcc

Hello,

when a bug in the Pascal frontend triggers `fancy_abort()', GCC says:

    filename.pas:1375: Internal compiler error in foo, at bar.c:34
    Please submit a full bug report.
     See <URL: http://www.gnu.org/software/gcc/bugs.html > for instructions.

I would prefer to have bug reports for the Pascal frontend directed
to another address instead. A mechanism to modify that string would
be nice here.

    Peter

PS: `foo' and `bar' above are metasyntactic variables, but the
    source file indeed reads `filename.pas'. :-)

-- 
http://home.pages.de/~Peter.Gerwinski/ - G-N-U GmbH: http://www.g-n-u.de
Maintainer GNU Pascal - http://home.pages.de/~GNU-Pascal/ - gpc-20010101
GnuPG key fingerprint: 9E7C 0FC4 8A62 5536 1730 A932 9834 65DB 2143 9422
keys: http://www.gerwinski.de/pubkeys/ - AntiSpam: http://spam.abuse.net

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2001-01-02 10:55 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-01-02  2:07 Different language frontends and fancy_abort() Richard Kenner
2001-01-02  3:11 ` Fergus Henderson
  -- strict thread matches above, loose matches on Subject: below --
2001-01-02 10:55 Richard Kenner
2001-01-02  3:19 Richard Kenner
2001-01-01 18:49 Peter Gerwinski
2001-01-01 23:02 ` Fergus Henderson
2001-01-02  3:02 ` Trevor Jenkins
2001-01-02 10:34 ` Joseph S. Myers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).