Bugzilla – Bug 259
CBE gives linkonce functions wrong linkage semantics
Last modified: 2004-02-26 17:00:05
You need to log in before you can comment on or make changes to this bug.
When converting a function from LLVM to C, the CBE generates linkonce functions as inline functions. However, this does not provide the correct semantics; if two functions with the same name are converted to C and then linked, the function bodies (if generated) will conflict, and a link error will occur. The CBE should declare linkonce functions as weak in C; it will provide the correct linking semantics, but won't be as efficient in cases where the function is unreferenced and can be throw away.
Will be fixed for 1.2. Assigned to myself.
Fixed with http://mail.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20040223/012282.html.