First Last Prev Next    No search results available
Details
: CBE gives linkonce functions wrong linkage semantics
Bug#: 259
: libraries
: Backend: C
Status: RESOLVED
Resolution: FIXED
: PC
: Linux
: trunk
: P2
: minor
: 1.2

:
: compile-fail
:
:
  Show dependency tree - Show dependency graph
People
Reporter: John T. Criswell <criswell@uiuc.edu>
Assigned To: John T. Criswell <criswell@uiuc.edu>

Attachments


Note

You need to log in before you can comment on or make changes to this bug.

Related actions


Description:   Opened: 2004-02-26 16:16
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.
------- Comment #1 From John T. Criswell 2004-02-26 16:16:58 -------
Will be fixed for 1.2.  Assigned to myself.

First Last Prev Next    No search results available