This is the mail archive of the gcc-patches@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: __attribute__ in types


>>>>> "Aldy" == Aldy Hernandez <aldyh@redhat.com> writes:

 > currently, __attributes__ in types is unsupported.  this means you can't
 > do casts like this:

 >     #define vector __attribute__((vector_size(16)))
    
 >     vector int foo;
 >     vector float bar;
    
 >     void b();
    
 >     void b()
 >     {
 >             foo = (vector int) bar;
 >     }
    
 > here is a patch to add support to the front end.

I forgot to mention my testing platform.

Bootstrapped on ppc linux *and* x86 linux.  Running reg tests on linux
ppc-- almost done.

Aldy


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