Re: pthread headers

2005-01-18 Thread Neal H. Walfield
> > diff -ur hurd.old/libpthread/sysdeps/l4/hurd/pt-sysdep.h > > hurd/libpthread/sysdeps/l4/hurd/pt-sysdep.h > > --- hurd.old/libpthread/sysdeps/l4/hurd/pt-sysdep.h 2002-10-11 > > 01:05:05.0 +0200 > > +++ hurd/libpthread/sysdeps/l4/hurd/pt-sysdep.h 2003-03-09 > > 14:48:11.0 +

Re: pthread headers: applied

2005-01-18 Thread Neal H. Walfield
> this patch does s/inline/__inline__ for all pthread headers that get > installed. I've committed this but with s/inline/__inline/. Thanks for your contribution. Neal ___ Bug-hurd mailing list Bug-hurd@gnu.org http://lists.gnu.org/mailman/listinfo/b

Re: pthread headers

2005-01-18 Thread Neal H. Walfield
> Maybe you want to consider this patch. This patch is mostly incorrect. > diff -ur hurd.old/libpthread/include/pthread/pthread.h > hurd/libpthread/include/pthread/pthread.h > --- hurd.old/libpthread/include/pthread/pthread.h 2002-11-10 > 18:00:40.0 +0100 > +++ hurd/libpthread/incl

Re: pthread headers

2005-01-17 Thread Roland McGrath
> Roland, OK to commit? For libpthread it's up to Neal. ___ Bug-hurd mailing list Bug-hurd@gnu.org http://lists.gnu.org/mailman/listinfo/bug-hurd

Re: pthread headers

2005-01-17 Thread Alfred M. Szmidt
Roland, OK to commit? ___ Bug-hurd mailing list Bug-hurd@gnu.org http://lists.gnu.org/mailman/listinfo/bug-hurd

Re: pthread headers

2005-01-17 Thread Michael Banck
On Fri, Jan 14, 2005 at 09:52:56PM +0100, Alfred M. Szmidt wrote: > Why didn't you declare macro's for `extern __inline__' and use the > already provided ones like __PT_SPIN_INLINE in > sysdeps/generic/bits/pthread.h? Robert Millan sent in a patch which does exactly this some time ago (see http://

Re: pthread headers

2005-01-14 Thread Alfred M. Szmidt
Why didn't you declare macro's for `extern __inline__' and use the already provided ones like __PT_SPIN_INLINE in sysdeps/generic/bits/pthread.h? ___ Bug-hurd mailing list Bug-hurd@gnu.org http://lists.gnu.org/mailman/listinfo/bug-hurd

Re: pthread headers

2005-01-14 Thread pietro
this patch does s/inline/__inline__ for all pthread headers that get installed. 2005-01-12 Pietro Ferrari <[EMAIL PROTECTED]> * include/pthread/pthread.h (pthread_spin_destroy): Change return type from extern inline to extern __inline__. (pthread_spin_init): Likewise.

Re: pthread headers

2005-01-12 Thread Neal H. Walfield
> I don't think this is quite correct. If it is extern inline > (irregardless if you use inline, __inline or __inline__), it may not > be inlined, but an external reference will be generated. Does our > libpthread contain definitions for these inline functions? > > If not, we will need to add th

Re: pthread headers

2005-01-12 Thread Neal H. Walfield
At Wed, 12 Jan 2005 12:05:45 +0100, Alfred M. Szmidt wrote: > >Doesn't ../bits/pthread.h also do an extern inline int ... ?? > > Sure, but it doesn't get installed. Sure it does. That is the file that initiated this discussion. ___ Bug-hurd mai

Re: pthread headers

2005-01-12 Thread Marcus Brinkmann
At Tue, 11 Jan 2005 23:49:06 -0200, pietro <[EMAIL PROTECTED]> wrote: > i did a grep for inline in the libpthread/include dir and only > pthread/pthread.h has inline in it. i'm attaching a patch that changes > inlie to __inline__ as discussed in this list. I don't think this is quite correct. I

Re: pthread headers

2005-01-12 Thread Alfred M. Szmidt
>Doesn't ../bits/pthread.h also do an extern inline int ... ?? > > Sure, butp it doesn't get installed. Sure it does. That is the file that initiated this discussion. Whoops, to early in the morning for me... ___ Bug-hurd mailing lis

Re: pthread headers

2005-01-12 Thread Alfred M. Szmidt
Doesn't ../bits/pthread.h also do an extern inline int ... ?? Sure, but it doesn't get installed. ___ Bug-hurd mailing list Bug-hurd@gnu.org http://lists.gnu.org/mailman/listinfo/bug-hurd

Re: pthread headers

2005-01-11 Thread Barry deFreese
pietro wrote: Alfred M. Szmidt wrote: If someone is bored, then they can fix the pthread headers to be C90 compliant. C90 disallows the use of the "inline" keyword. Many programs still like to use -ansi, so this break compilation of those on GNU/Hurd since our pthread headers aren't C90 compliant.

Re: pthread headers

2005-01-11 Thread pietro
Alfred M. Szmidt wrote: If someone is bored, then they can fix the pthread headers to be C90 compliant. C90 disallows the use of the "inline" keyword. Many programs still like to use -ansi, so this break compilation of those on GNU/Hurd since our pthread headers aren't C90 compliant. i did a grep

Re: pthread headers

2005-01-11 Thread Antti-Juhani Kaijanaho
On 20050111T190536-0500, James A. Morrison wrote: > Why will extern inline change? I haven't seen anything in the gcc > documentation to indicate any changes to extern inline. Because the current semantics of inline are in conflict with what C99 specifies. The current GCC semantics and C99 sema

Re: pthread headers

2005-01-11 Thread James A. Morrison
Antti-Juhani Kaijanaho <[EMAIL PROTECTED]> writes: > Now, you seem to have completely missed *my* point. "extern inline" > will change semantics sooner or later, and I would assume that "extern > __inline__" does too. If you can tell me that my assumption is false, > be my guest, but -ansi is n

Re: pthread headers

2005-01-11 Thread Alfred M. Szmidt
If you can tell me that my assumption is false, be my guest, but -ansi is not relevant here. It is, -ansi does not support inline, and that is what the whole discussion is about. That how the inline/__inline__ keywords get changed is totally irrelevant to the discussion. _

Re: pthread headers

2005-01-11 Thread Antti-Juhani Kaijanaho
On 20050111T193321+0100, Alfred M. Szmidt wrote: > You weren't making any point, I was correcting your impression as to > the difference between __inline__ and inline. You didn't correct my impression. since there was nothing to correct. I know about the difference between __inline__ and inline w

Re: pthread headers

2005-01-11 Thread Marcus Brinkmann
At Tue, 11 Jan 2005 18:48:24 +0200, Antti-Juhani Kaijanaho <[EMAIL PROTECTED]> wrote: > > [1 ] > [1.1 ] > On 20050111T174249+0100, Alfred M. Szmidt wrote: > >I would expect GCC to eventually fix its inline handling to conform with > >C99 > > > > The problem isn't C99, but C90, __inline

Re: pthread headers

2005-01-11 Thread Alfred M. Szmidt
>I was under the impression that __inline is an alias for >inline, with no semantic differences. > > Then you have been under the wrong impression. > > ,[ (gcc)C Dialect Options ] > | The alternate keywords `__asm__', `__extension__', `__inline__' and > | `__type

Re: pthread headers

2005-01-11 Thread Antti-Juhani Kaijanaho
On 20050111T180656+0100, Alfred M. Szmidt wrote: >I was under the impression that __inline is an alias for inline, >with no semantic differences. > > Then you have been under the wrong impression. > > ,[ (gcc)C Dialect Options ] > | The alternate keywords `__asm__', `__extension__', `

Re: pthread headers

2005-01-11 Thread Alfred M. Szmidt
> What about ditching the _EXTERN_INLINE macros and just use > "extern __inline" directly? I don't see a reason why we should > bother with a non-gcc compilers... The _EXTERN_INLINE macros aren't there to protect against non-gcc; That is true, silly me.

Re: pthread headers

2005-01-11 Thread Alfred M. Szmidt
I was under the impression that __inline is an alias for inline, with no semantic differences. Then you have been under the wrong impression. ,[ (gcc)C Dialect Options ] | The alternate keywords `__asm__', `__extension__', `__inline__' and | `__typeof__' continue to work despite `-ansi'

Re: pthread headers

2005-01-11 Thread Alfred M. Szmidt
I would expect GCC to eventually fix its inline handling to conform with C99 The problem isn't C99, but C90, __inline is handled differently than inline by gcc. The former works even with -ansi enabled. ___ Bug-hurd mailing list Bug-hurd@gnu.or

Re: pthread headers

2005-01-11 Thread Thomas Bushnell BSG
"Alfred M. Szmidt" <[EMAIL PROTECTED]> writes: > What about ditching the _EXTERN_INLINE macros and just use "extern > __inline" directly? I don't see a reason why we should bother with a > non-gcc compilers... The _EXTERN_INLINE macros aren't there to protect against non-gcc; they are there so t

Re: pthread headers

2005-01-11 Thread Antti-Juhani Kaijanaho
On 20050111T174249+0100, Alfred M. Szmidt wrote: >I would expect GCC to eventually fix its inline handling to conform with >C99 > > The problem isn't C99, but C90, __inline is handled differently than > inline by gcc. The former works even with -ansi enabled. I was under the impression

Re: pthread headers

2005-01-11 Thread Antti-Juhani Kaijanaho
On 20050111T162536+0100, Alfred M. Szmidt wrote: > What about ditching the _EXTERN_INLINE macros and just use "extern > __inline" directly? I don't see a reason why we should bother with a > non-gcc compilers... I would expect GCC to eventually fix its inline handling to conform with C99 - at tha

Re: pthread headers

2005-01-11 Thread Alfred M. Szmidt
I wonder if the best approach would be to just s/inline/__inline__/ in the public headers. What about ditching the _EXTERN_INLINE macros and just use "extern __inline" directly? I don't see a reason why we should bother with a non-gcc compilers... _

Re: pthread headers

2005-01-11 Thread Roland McGrath
> I wonder if the best approach would be to just s/inline/__inline__/ in > the public headers. gcc allows this even in -ansi mode (unlike just > inline). Yes, do that. It will at least be enough for some. ___ Bug-hurd mailing list Bug-hurd@gnu.org ht

Re: pthread headers

2005-01-11 Thread Neal H. Walfield
At Tue, 11 Jan 2005 01:55:22 +0100, Alfred M. Szmidt wrote: > > If someone is bored, then they can fix the pthread headers to be C90 > compliant. C90 disallows the use of the "inline" keyword. > > Many programs still like to use -ansi, so this break compilation of > those on GNU/Hurd since our p