This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: GCC target-specific extension
- From: Fabio Alemagna <falemagn at studenti dot unina dot it>
- To: Richard Henderson <rth at redhat dot com>
- Cc: <gcc at gcc dot gnu dot org>
- Date: Wed, 7 May 2003 02:02:42 +0200 (CEST)
- Subject: 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. [...] */