[ trimming the CC list ] Devang Patel <[EMAIL PROTECTED]> writes:
> If the optimizer can handle the symbol versioning case when one > definition with version is defined in the same source file as the > reference then you don't need new API. > > For example, > > a.o : refers to S and defines S at version V. > b.o : defines S. > > Is inliner, at compile time allowed to inline uses of S in a.o using > the definition it has ? The compiler doesn't know about symbol versions. The way they work is that you give the symbol a name like S_V, and then use an assembly level .symver directive to say that S_V is really S at version V. So false inlining doesn't really arise in a single source file, unless you do something rather odd. Ian