This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [plugins] Add user attribute
- From: Taras Glek <tglek at mozilla dot com>
- To: Basile STARYNKEVITCH <basile at starynkevitch dot net>
- Cc: gcc-patches at gcc dot gnu dot org, Diego Novillo <dnovillo at google dot com>, Le-Chun Wu <lcwu at google dot com>
- Date: Tue, 31 Mar 2009 11:28:29 -0700
- Subject: Re: [plugins] Add user attribute
- References: <49D25E40.6080507@mozilla.com> <49D26018.4020407@starynkevitch.net>
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