This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: plugin callbacks after compiler errors
- From: Diego Novillo <dnovillo at google dot com>
- To: Taras Glek <taras dot glek at gmail dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Tue, 9 Jun 2009 18:12:18 -0400
- Subject: Re: plugin callbacks after compiler errors
- References: <4A2EB8F4.2080003@gmail.com>
On Tue, Jun 9, 2009 at 15:33, Taras Glek<taras.glek@gmail.com> wrote:
> While developing my plugin I've noticed that many callbacks need to be
> guarded with "if (errorcount)" or the plugin will cause a gcc crash due to
> receiving less complete data than it expected.
More details please. What exactly is the error and how is errorcount related?
> Should the plugin API guard callbacks in invoke_plugin_callbacks() to avoid
> 99% of plugins running into this issue?
At the point that plugins are invoked, they should be able to deal
with whatever state the IL is at that moment. I'd favor flexibility
over protection here. But I'd like to see more details on what you're
after here.
Diego.