This is the mail archive of the gcc@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: GCC target-specific extension


On Wed, 7 May 2003, Fabio Alemagna wrote:
> Last but not least: would it be welcome a frontend feature which let
> target-specific code "transform" declarations/definitions on the basis of
> given attributes? Something like a "filter" which gets feeded with the
> tree for the decl/def, and returns back another tree, possibly different
> than the one it was feeded with. This would let any other targets cleanly
> handle similar needs.

Hum... looking at struct attribute_spec right now... is the handler
supposed to be able to do just the above? At least this is what I
understand by reading the comments in the gcc/tree.h:


  /* Function to handle this attribute.  NODE points to the node to which
     the attribute is to be applied.  If a DECL, it should be modified in
     place; if a TYPE, a copy should be created. [...] */


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