Displaying 1 result from an estimated 1 matches for "__thread2".
Did you mean:
__thread
2012 Sep 29
1
[LLVMdev] pthread_equal multiply defined in .bc files
...c
Then I get this error:
llvm-link: link error in 'code_io.o': Linking globals named 'pthread_equal': symbol multiply defined!
After using llvm-dis to get the llvm assembly code, I found that in every .bc, pthread_equal is defined:
define i32 @pthread_equal(i32 %__thread1, i32 %__thread2) nounwind readnone inlinehint {
entry:
%cmp = icmp eq i32 %__thread1, %__thread2
%conv = zext i1 %cmp to i32
ret i32 %conv
}
That results multiple definitions of the same function and the linkage error.
NOTE: The above compile and link method works for single C file program.
So what do I m...