[cfe-dev] Weak linkage for inline

Argiris Kirtzidis akyrtzi at gmail.com
Fri Jun 27 04:21:30 PDT 2008


This test case:

inline void f(void) {}

when compiled with llvm-gcc, produces this output:

define void @f() nounwind  {

but when compiled with clang, this output:

define weak void @f() {

Should clang mirror llvm-gcc and not use 'weak' linkage for inline 
functions ?


More information about the cfe-dev mailing list