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

--- Comment #6 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot 
Uni-Bielefeld.DE> ---
> --- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
> On Linux:
>
>   [Nr] Name              Type             Address           Offset
>        Size              EntSize          Flags  Link  Info  Align
> ...
>   [ 6] .tbss             NOBITS           0000000000000000  00000088
>        0000000000000288  0000000000000000 WAT       0     0     16
>
> so the TLS segment is appropriately aligned.  With -mavx2 alignment increases:
>
>   [ 6] .tbss             NOBITS           0000000000000000  00000088
>        0000000000000288  0000000000000000 WAT       0     0     32
>
> same with -m32 on x86_64-linux.

This is the x86_64-linux -m64 behaviour.  For i686, I see this instead:

* gcc-16:

  [18] .tbss
       NOBITS          0804bef0 002ef0 000288 00   0   0 16
       [00000403]: WRITE, ALLOC, TLS

* gcc-17:

  [18] .tbss
       NOBITS          0804bef0 002ef0 000288 00   0   0  8
       [00000403]: WRITE, ALLOC, TLS

On i386-solaris, I find

* gcc-16:

  [26] .tbss
       NOBITS          08060eb0 000eb0 000288 00   0   0 16
       [00000403]: WRITE, ALLOC, TLS

* gcc-17:

  [26] .tbss
       NOBITS          08060ed0 000ed0 000288 00   0   0 16
       [00000403]: WRITE, ALLOC, TLS

Reply via email to