bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH hurd 02/30] include: force all refcount functions to be inlin


From: Justus Winter
Subject: Re: [PATCH hurd 02/30] include: force all refcount functions to be inlined
Date: Sun, 30 Nov 2014 19:29:01 +0100
User-agent: alot/0.3.5

Quoting Samuel Thibault (2014-11-27 19:18:35)
> Justus Winter, le Thu 27 Nov 2014 14:18:42 +0100, a écrit :
> > * include/refcount.h: Declare all functions `extern inline' instead of
> > `static inline'.  This forces those functions to be inlined,
> 
> Well, actually no. The compiler is still allowed not to inline them,
> and that turns them into external references.

Crap.  That must have been wishful thinking on my part ;)

> You then need to make some .c file provide the implementations. See
> for instance the use of DISKFS_DEFINE_EXTERN_INLINE

Yes, I'm introducing this for libports too.  When I introduced
refcount.h I didn't realized that gcc doesn't approve of me using a
static inline function in a extern inline one (that we're using all
over the place).  So where would I put this then?  libports?

Justus



reply via email to

[Prev in Thread] Current Thread [Next in Thread]