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


Basile STARYNKEVITCH wrote:
Taras Glek wrote:
Hi,
This patch adds a user("annotation") attribute to gcc for use with gcc plugins that require code to be annotated.


Maybe we'll later could want plugins to be able to add their kind of plugins, or at least have the convention that plugin foo would want attributes like user(foo,XXX) where XXX is some complex stuff specific to that plugin foo.
So far we've been sticking more complicated expressions into the string and it has worked out great. Sure the plugin has to do more parsing, but most annotation are single-word strings.

Taras


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