On Wed, May 15, 2013 at 9:00 PM, Leif Ekblad wrote:
> I made the suggested changes, and enclose a new patch.
<...>
> It's been tested with target RDOS, but not with target Linux.
>
> Uros, could you commit the patch if it is acceptable?
I have committed attached patch with following ChangeLog:
, but not with target Linux.
Uros, could you commit the patch if it is acceptable?
Regards,
Leif Ekblad
- Original Message -
From: "Uros Bizjak"
To: "Leif Ekblad"
Cc: "Michael Matz" ;
Sent: Tuesday, May 14, 2013 8:19 PM
Subject: Re: Using GS for TLS
On Tue, May 14, 2013 at 6:45 PM, Leif Ekblad wrote:
> I've made a patch along these lines (enclosed).
>
> Change log:
> * gcc/config/i386/i386.c: Use DEFAULT_TLS_SEG_REG to access TLS
> * gcc/config/i386/i386.h: Define default segment register for TLS
> * gcc/config/i386/rdos.h: Added TLS configu
ssage -
From: "Uros Bizjak"
To: "Michael Matz"
Cc: ; "Leif Ekblad"
Sent: Tuesday, May 14, 2013 11:35 AM
Subject: Re: Using GS for TLS on x86-64 for target RDOS
On Tue, May 14, 2013 at 11:13 AM, Michael Matz wrote:
On Tue, 14 May 2013, Uros Bizjak wr
On Tue, May 14, 2013 at 11:13 AM, Michael Matz wrote:
> On Tue, 14 May 2013, Uros Bizjak wrote:
>
>> I'd propose to introduce:
>>
>> a) #define DEFAULT_TLS_SEG_REG in i386.h to SEG_GS
>>
>> b) #undef and #define DEFAULT_TLS_SEG_REG in x86-64.h to SEG_FS
>
> This would break -m32.
Uh, yes.
So in
Hi,
On Tue, 14 May 2013, Uros Bizjak wrote:
> I'd propose to introduce:
>
> a) #define DEFAULT_TLS_SEG_REG in i386.h to SEG_GS
>
> b) #undef and #define DEFAULT_TLS_SEG_REG in x86-64.h to SEG_FS
This would break -m32.
> c) #undef and #define DEFAULT_TLS_SEG_REG in rdos.h to SEG_GS
>
> Then u
Hello!
> I would need a way to use GS segment register instead of FS for x86-64 for
> target RDOS since
> RDOS cannot use FS for TLS. It seems like the code related to this is
> concentrated to two
> different places:
> Especially the second reference would become hard-to-read if more
> condit