Question about __attribute__ (mis)handling

Ira Ruben ira@apple.com
Thu Dec 13 11:07:00 GMT 2001


At 10:12 AM -0800 12/13/01, Aldy Hernandez wrote:

>  >>>>> "Ira" == Ira Ruben <ira@apple.com> writes:
>
>  > I have a question about __attribute__ handling for C++ inline member
>  > functions.  Given the following example:
>
>i've been fixing a few things wrong with attributes.
>
>Are you getting a warning that it's being ignored?  If so, then this
>is for you:
>
>http://gcc.gnu.org/ml/gcc-patches/2001-12/msg00971.html
>
>if you're not, it may be that the given attribute is applied on the
>wrong thing-- the mode attribute is currently applied to decls not
>types, and this gets fixed here:
>
>http://gcc.gnu.org/ml/gcc-patches/2001-12/msg01063.html
>
>if you have a similar problem, you might want to fix the attribute to
>work on types.

There is no warning.  That test case I showed illustrates it is not 
even being handled.  What I believe is that there is a missing call 
to decl_attributes() for inline members.

Ira



More information about the Gcc mailing list