__inline__ keyword in 3.0+?

Joseph S. Myers jsm28@cam.ac.uk
Tue Jan 9 01:42:00 GMT 2001


On Mon, 8 Jan 2001, Tom Leete wrote:

> What is planned for the '__inline__' keyword? Will it continue to use the
> current gcc syntax, or will it remain a synonym of 'inline'? Will it be
> deprecated?

My expectation is that it will remain a synonym of inline - which will at
some point, though not for GCC 3.0, change to use ISO C99 semantics
instead of current GCC semantics.  (Existing headers using the old version
of extern inline, e.g. glibc, will need to be fixincluded.  The Linux
kernel has already been fixed to use static inline, and for compatibility
between C99 and old GCC semantics you probably want to do the same in your
code.)  Different semantics for 'inline' and '__inline__' would be a
recipe for confusion.

-- 
Joseph S. Myers
jsm28@cam.ac.uk



More information about the Gcc mailing list