This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Different language frontends and fancy_abort()
- To: fjh at cs dot mu dot oz dot au
- Subject: Re: Different language frontends and fancy_abort()
- From: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- Date: Tue, 2 Jan 01 06:20:18 EST
- Cc: gcc-patches at gcc dot gnu dot org, gcc at gcc dot gnu dot org
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!