https://gcc.gnu.org/bugzilla/show_bug.cgi?id=128846

--- Comment #12 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot 
Uni-Bielefeld.DE> ---
>> * Solaris/i386 pentium4:
>> 
>> Thread 2 hit Breakpoint 1, 0x08050c30 in main ()
>> => 0x8050c30 <main>: mov    %gs:0x0,%ecx
>> => 0x8050c37 <main+7>:       movsd  0x8050a00,%xmm0
>> (gdb) p/x $ecx
>> $6 = 0xfe5e04c0
>> => 0x8050c3f <main+15>:      lea    -0x288(%ecx),%eax
>
> vs. bad.  So the TLS base looks the same but somehow TLS
> layout, while the base might be sufficiently aligned, is
> not guaranteeing alignment of the TLS variable.  Maybe
> a (dynamic) linker issue?
>
> Does
>
> __thread double thrtest[81] __attribute__((aligned(16)));
>
> get properly aligned?  Maybe the size somehow confuses the

no, same issue.

> layout - guessing that [82] will work (it also works on Linux).

It does.

Reply via email to