Re: gcc 4.5 and TLS

2010-06-06 Thread Brad Boyer
On Sun, Jun 06, 2010 at 11:52:00AM -0700, Brad Boyer wrote: > Is there a document somewhere on how all of this works, or is it > just the comments scattered about all the code? The man page for > the system call isn't really enough to explain the implementation. I wouldn't normally respond to my o

Re: gcc 4.5 and TLS

2010-06-06 Thread Brad Boyer
On Sun, Jun 06, 2010 at 10:48:25AM +0200, Andreas Schwab wrote: > Geert Uytterhoeven writes: > > > Don't know if there are other places that make assumptions about > > __alignof__(u32) == sizeof(u32). > > See get_futex_key_refs. OK. I see now that the code uses the lowest 2 bits for other purpo

Re: gcc 4.5 and TLS

2010-06-06 Thread Geert Uytterhoeven
On Sun, Jun 6, 2010 at 20:37, Brad Boyer wrote: > On Sun, Jun 06, 2010 at 10:42:40AM +0200, Andreas Schwab wrote: >> Brad Boyer writes: >> >> > I may be missing something obvious, but why don't we just change the >> > kernel to allow 2-byte alignment for m68k? The comment in futex.c >> > just say

Re: gcc 4.5 and TLS

2010-06-06 Thread Brad Boyer
On Sun, Jun 06, 2010 at 10:42:40AM +0200, Andreas Schwab wrote: > Brad Boyer writes: > > > I may be missing something obvious, but why don't we just change the > > kernel to allow 2-byte alignment for m68k? The comment in futex.c > > just says "natural" alignment but is then hard-coded for sizeof

Re: gcc 4.5 and TLS

2010-06-06 Thread Andreas Schwab
Geert Uytterhoeven writes: > Don't know if there are other places that make assumptions about > __alignof__(u32) == sizeof(u32). See get_futex_key_refs. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for some

Re: gcc 4.5 and TLS

2010-06-06 Thread Andreas Schwab
Brad Boyer writes: > I may be missing something obvious, but why don't we just change the > kernel to allow 2-byte alignment for m68k? The comment in futex.c > just says "natural" alignment but is then hard-coded for sizeof(u32). Natural alignment *is* sizeof. Andreas. -- Andreas Schwab, sch.

Re: gcc 4.5 and TLS

2010-06-06 Thread Geert Uytterhoeven
On Sun, Jun 6, 2010 at 05:49, Brad Boyer wrote: > On Thu, Jun 03, 2010 at 06:12:29PM +0200, Andreas Schwab wrote: >> 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 maxi