This is the mail archive of the gcc-patches@gcc.gnu.org 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] Add user attribute


Diego Novillo wrote:
On Wed, Apr 1, 2009 at 07:59, Basile STARYNKEVITCH
<basile@starynkevitch.net> wrote:

I would tend to think that triggering an error, not a warning,

Yes, sorry I meant warning.

But then, what is the point? Some user source code would happen to use an attribute FOO which would be specific to the libFOOBAR.so plugin. Then, wouldn't it be sensible to let the FOOBAR plugin register tthe FOO attribute (not necessarily the "user" attribute; that is a confusing name). If the FOOBAR plugin is not loaeded when compiling the user source code, I would expect GCC to issue a warning, not an error, and it is already happenning right now.


So what is the point exactly?

Maybe we might think that the initial plugin implementation should happen as quickly as possible in the trunk (now in stage 1), and that such features (like plugin specific attributes) could be added a little bit later if they are not very easy to implement.

Regards.

--
Basile STARYNKEVITCH         http://starynkevitch.net/Basile/
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]