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: plugin-provided pragmas & Fortran or Ada?

On Tue, 2010-06-22 at 08:58 +0200, Duncan Sands wrote:
> 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.


email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359
8, rue de la Faiencerie, 92340 Bourg La Reine, France
*** opinions {are only mines, sont seulement les miennes} ***

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