inline functions not getting internal linkage in x86 without optimization

Martin von Loewis martin@mira.isdn.cs.tu-berlin.de
Sat Jun 27 01:33:00 GMT 1998


> 	More to the point, is there any way to generate something
> equivalent to GCC's "extern inline" available as a feature of the C
> Compiler when using G++? 

You mean,

extern inline void f(){}

int main()
{
  f();
} 

Works fine for me with egcs-2.91.42 (i.e. compiles and links, with and
without optimization). It also seems to have the semantics that C++
requires.

What is the feature of the C compiler that you want?

Martin



More information about the Gcc-bugs mailing list