[PATCH] Make __always_inline macro compatible with glibc

Sebastian Huber sebastian.huber@embedded-brains.de
Wed Jan 17 10:24:00 GMT 2018


On 17/01/18 10:55, Yaakov Selkowitz wrote:
> On 2018-01-17 03:42, Sebastian Huber wrote:
>> On 16/01/18 20:30, Yaakov Selkowitz wrote:
>>> For example, this is used when cross-compiling the Linux kernel on
>>> Cygwin.
> ^^^
>
>> Which problem resolves this patch? I ask since I added this for FreeBSD
>> compatibility and here the definition is still the same.
> The Linux kernel's hostprogs use __always_inline without __inline__,
> because glibc's __always_inline includes it.  Without this, you get a
> number of "always_inline function might not be inlinable" errors.
>

Ok, it seems that you can repeat the inline keyword multiple times. So, a

static inline __always_inline void f(void);

causes no problems with this change.

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber@embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.



More information about the Newlib mailing list