Re: Vector subscription, register storage class

2010-06-09 Thread Joseph S. Myers
On Wed, 9 Jun 2010, Artem Shinkarov wrote: > It should be addressable, but register keyword disallows it. To solve > this problem I modify c-decl.c:start_decl like this: I think that's too early, since you still want "&vector" (explicitly taking the address) to be rejected for a vector with regi

Vector subscription, register storage class

2010-06-09 Thread Artem Shinkarov
Hi, I'm working on the vector subscription patch in terms of GSoC 2010 project. The patch basically does the following, if we have a vector subscription like: #define vector __attribute__((vector_size(16))) vector int a; a[1] = 10; then the code "a[1] = 10" is transformed into the code "*((int *