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]

Re: PATCH: `__norestrict' type qualifier


> >   *(unsigned int *__norestrict)p ^= ~0;

> a `double * restrict __norestrict foo'?  I don't think so.
> 
> A more accurate name is `__typealias'.

this would be an experimental extension - why not using the
existing attribute framework? ie

  double * restrict __attribute__ ((mayalias)) foo = bar;

just like you currently can 

  double * restrict __attribute__ ((aligned(8))) foo = bar;


then #define __myfavouritequalifier __attribute__ ((mayalias))
depending on compiler version.


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