On Fri, Sep 12, 2014 at 1:51 PM, Bernd Schmidt <ber...@codesourcery.com> wrote: > On 09/12/2014 01:45 PM, Richard Biener wrote: >>> >>> Let me know what you prefer. >> >> >> Hmm, neither I suppose. COMPLEX_TYPEs are also built >> with main-variant component type and I suspect the same for >> ARRAY_TYPEs. I see the address-space on types as >> artifact that comes from Frontend support (aka parsing). > > >> Fixing up the vector type in advance is ok with me but I'd like us to >> move away from address-space-on-types. > > > Is that an approval for the first variant in the sense that it's the best we > can do at the moment? Or are you requiring a rewrite of all the address > space support in the compiler?
The former. Of course if you want to spend the time rewriting the GIMPLE parts of address-space support even better (shouldn't be too hard given nobody really cares about it too much). I just think that by modeling an API that looks like we have "fixed" the GIMPLE parts makes it easier for somebody to do that. Thanks, Richard. > > Bernd >