Re: gcc 4.5 and TLS
On Thu, 3 Jun 2010, Andreas Schwab wrote:
> Wouter Verhelst <wouter@debian.org> writes:
>
> > Does anyone know what the status of this support is in libc?
>
> It is basically working quite well. Unfortunately there is a big
> problem which becomes apparent when running the libstdc++ testsuite: the
> m68k compiler only guarantees a maximum alignment of 2 bytes, but the
> futex syscall requires 4 byte alignment. So if your pthread mutex is
> not aligned on a 4 byte boundary this will result in passing an
> unaligned address to futex. I haven't yet decided on what would be the
> best way to fix that.
Better to adopt the 4 byte alignment rather than relax the requirement? Or
are you concerned about memory wasted on padding? Can the tradeoffs be
quantified?
Finn
>
> Andreas.
>
>
Reply to: