Re: __thread errno

2012-08-01 Thread Thomas Schwinge
Hi! While the issue is Hurd-specific, non-Hurd people might nevertheless be able to help here with their glibc/TLS expertise. I'm working on a patch to move the Hurd's errno from the Hurd-specific threadvar (in short, a mechanism somewhat equivalent to TLS, using a portion of space at the beginni

Re: __thread errno

2012-06-21 Thread Thomas Schwinge
Hi! On Wed, 16 May 2012 22:27:19 +0200, I wrote: > On Thu, 10 May 2012 17:25:59 +0800, I wrote: > > On Thu, 10 May 2012 03:22:20 +0200, Samuel Thibault > > wrote: > > > Thomas Schwinge, le Thu 10 May 2012 09:17:33 +0800, a écrit : > > > > On Thu, 10 May 2012 00:10:52 +, Samuel Thibault > >

Re: __thread errno

2012-05-16 Thread Roland McGrath
TLS_INIT_TP is done early enough in rtld.c that it ought to be before anything tries to use errno. Figure out the call chain.

Re: __thread errno

2012-05-16 Thread Thomas Schwinge
dl-sysdep.h bites us: /* The private errno doesn't make sense on the Hurd. errno is always the thread-local slot shared with libc, and it matters to share the cell with libc because after startup we use libc functions that set errno (open, mmap, etc). */ #defin

Re: __thread errno (was: [SCM] glibc maintenance branch, tschwinge/Roger_Whittaker, updated. glibc-2.12-3577-g5b1f2ae)

2012-05-10 Thread Roland McGrath
I think the right thing to do is first get abilist data into the tree for the Hurd configuration based on the libc builds that you've used to create a lot of existing binaries. Then check-abi will always tell you if a change is a problem. Thanks, Roland

Re: __thread errno (was: [SCM] glibc maintenance branch, tschwinge/Roger_Whittaker, updated. glibc-2.12-3577-g5b1f2ae)

2012-05-10 Thread Thomas Schwinge
; movl(%eax), %eax > > addl$12, %esp > > .cfi_def_cfa_offset 4 > > ret > > .cfi_endproc > > .LFE0: > > .size e, .-e > > .ident "GCC: (Debian 4.6.3-1+h

Re: glibc t/tls (was: __thread errno)

2012-05-10 Thread Samuel Thibault
Thomas Schwinge, le Thu 10 May 2012 12:46:42 +0800, a écrit : > Hi! > > On Thu, 10 May 2012 03:22:20 +0200, Samuel Thibault > wrote: > > Thomas Schwinge, le Thu 10 May 2012 09:17:33 +0800, a écrit : > > > Also, I plan to move some bits of the t/tls branch into t/tls-threadvar: > > > t/tls should

glibc t/tls (was: __thread errno)

2012-05-09 Thread Thomas Schwinge
Hi! On Thu, 10 May 2012 03:22:20 +0200, Samuel Thibault wrote: > Thomas Schwinge, le Thu 10 May 2012 09:17:33 +0800, a écrit : > > Also, I plan to move some bits of the t/tls branch into t/tls-threadvar: > > t/tls should just add the mechanism for TLS (should be pushed upstream > > soon), and t/

Re: __thread errno (was: [SCM] glibc maintenance branch, tschwinge/Roger_Whittaker, updated. glibc-2.12-3577-g5b1f2ae)

2012-05-09 Thread Thomas Schwinge
Hi! On Thu, 10 May 2012 03:22:20 +0200, Samuel Thibault wrote: > Thomas Schwinge, le Thu 10 May 2012 09:17:33 +0800, a écrit : > > On Thu, 10 May 2012 00:10:52 +, Samuel Thibault > > wrote: > > > The branch, tschwinge/Roger_Whittaker has been updated > > > > > commit d0dcb9e7be5d08ef0ecb4

Re: __thread errno (was: [SCM] glibc maintenance branch, tschwinge/Roger_Whittaker, updated. glibc-2.12-3577-g5b1f2ae)

2012-05-09 Thread Samuel Thibault
subl$12, %esp > .cfi_def_cfa_offset 16 > call__errno_location > movl(%eax), %eax > addl$12, %esp > .cfi_def_cfa_offset 4 > ret > .cfi_endproc > .LFE0: > .size

__thread errno (was: [SCM] glibc maintenance branch, tschwinge/Roger_Whittaker, updated. glibc-2.12-3577-g5b1f2ae)

2012-05-09 Thread Thomas Schwinge
call__errno_location movl(%eax), %eax addl$12, %esp .cfi_def_cfa_offset 4 ret .cfi_endproc .LFE0: .size e, .-e .ident "GCC: (Debian 4.6.3-1+hurd.3) 4.6.3" .section .not