[LLVMbugs] [Bug 259] NEW: CBE gives linkonce functions wrong linkage semantics
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Thu Feb 26 14:16:02 PST 2004
http://llvm.cs.uiuc.edu/bugs/show_bug.cgi?id=259
Summary: CBE gives linkonce functions wrong linkage semantics
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: minor
Priority: P2
Component: C backend
AssignedTo: criswell at uiuc.edu
ReportedBy: criswell at uiuc.edu
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.
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
More information about the llvm-bugs
mailing list