This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: __attribute__ in types
- From: Aldy Hernandez <aldyh at redhat dot com>
- To: gcc patches <gcc-patches at gcc dot gnu dot org>
- Cc: jsm28 at cam dot ac dot uk
- Date: 09 Dec 2001 10:33:01 -0800
- Subject: Re: __attribute__ in types
- References: <1007865311.20065.148.camel@litecycle.cc.andrews.edu>
>>>>> "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