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: Question about __attribute__ (mis)handling


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


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