plugin-provided pragmas & Fortran or Ada?

Duncan Sands baldrick@free.fr
Tue Jun 22 09:34:00 GMT 2010


Hi Basile,

>>> Assuming a plugin (e.g. MELT) add a new pragma using PLUGIN_PRAGMAS, is
>>> this pragma usable from Ada or Fortran code?
>>>
>>> I am not very familiar with Ada or Fortran. I believe Ada has some
>>> syntax for pragmas -but do Ada pragma have the same API inside GCC
>>> plugins as C or C++ pragmas?- and I am not sure about Fortran. Many
>>> Fortran dialects or implementations parse specially some kind of
>>> comments -but I don't know if these are giving pragma events to plugins.
>>
>> I'm pretty sure this won't work for Ada without modifying the Ada
>> front-end.
>
> Are there any plugin hooks for Ada pragmas? Perhaps the Ada team might
> consider adding some, if it is simple enough. Specific pragmas have
> definitely their places in plugins.

I'm pretty sure there are no such plugin hooks right now.

Ciao,

Duncan.



More information about the Gcc mailing list