This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PLUGIN] Support for registering cache tables from plugins
On Sat, Sep 5, 2009 at 5:41 PM, Chris Lattner<sabre@nondot.org> wrote:
> On Sep 5, 2009, at 3:17 AM, Duncan Sands wrote:
>>>
>>> Or a clang frontend for GCC. ?Something even more useful. ?No idea if the
>>> plugin hooks are already enough to support a frontend plugin.
>>
>> I don't think doing this as a GCC plugin makes much sense. ?Rather, gcc
>> should be a plugin for clang. ?If the clang interface to the LLVM
>> backend is properly abstracted (I don't know if it is) then this might
>> be quite easy to do.
>
> Yep, it is. ?The LLVM backend has no special status in Clang.
Knowing GCC it might be still easier to transform Clang into a GCC frontend
plugin than to turn GCC into a Clang plugin ;)
Richard.