On Tue, Mar 27, 2012 at 7:20 PM, Richard Henderson <r...@redhat.com> wrote: > On 03/27/12 09:37, Uros Bizjak wrote: >>> > Now, in this particular case, there might be another option to >>> > avoid this hassle completely: I understand that this UNSPEC is >>> > simply a magic marker to make the address use the fs: or gs: >>> > segment override, right? Now that GCC supports address spaces, >>> > it might be possible to model fs:/gs: relative addresses instead >>> > by using a non-standard address space ... >> This is an interesting idea, I will look into it. > > Generallized segment overrides via non-standard address spaces > has been on my to-do list for quite a while...
I have looked a bit to implement this functionality, but address spaces are somehow coupled with a keyword that describes special address space. I guess we can't just reuse __thread keyword for this purpose. Ulrich, can you please provide some guidelines on how you think this proposed functionality should be implemented? Thanks, Uros.