static inline math functions (was Re: [PATCH v6 06/13] ARC: hardware floating point support)

Joseph Myers joseph@codesourcery.com
Tue Jun 2 18:13:34 GMT 2020


On Tue, 2 Jun 2020, Vineet Gupta via Libc-alpha wrote:

> Thi s approach seems to trip math/check-installed-headers.out
> 
> 
> :::: -std=c89
> In file included from ../include/fpu_control.h:2,
> from /tmp/cih_test_Nknxdp.c:8:
> ../sysdeps/arc/fpu_control.h:82:14: error: expected ';' before 'unsigned'
> 82 | static inline unsigned int arc_fpu_getcw(void)
> 
> 
> Any tips ?

Installed headers have to use __inline instead of inline to work in C90 
mode.

-- 
Joseph S. Myers
joseph@codesourcery.com


More information about the Libc-alpha mailing list