This is the mail archive of the 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: [plugins] RFA: Merge plugins into mainline [3/5 - ME]

On Mon, Apr 6, 2009 at 11:55 AM, Ian Lance Taylor <> wrote:
> Le-Chun Wu <> writes:
>>>> +/* Insert the plugin pass at the proper position. Return true if the pass
>>>> + ? is successfully added.
>>>> +
>>>> + ? PLUGIN_PASS_INFO - new pass to be inserted
>>>> + ? PASS_LIST ? ? ? ?- root of the pass list to insert the new pass to ?*/
>>>> +
>>> You don't have to do it now, but I would like to permit backends to
>>> register their own passes. ?That suggests that most of this code should
>>> move to tree-pass.c.
>> I am not sure I understand this comment. Do you mean you would like
>> the plugins to register backend (RTL) passes? If so, the current
>> mechanism should allow that. Or do you actually mean something else?
> I mean that even without using plugins, gcc backends (e.g., the i386
> backend) should be able to register their own passes. ?That is, this
> ability to add new passes should be generically available in gcc, rather
> than being a static function inside plugin.c.
> This is not something which you need to address in this patch.

Ah, I see. Thanks for the explanation.


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