http://llvm.org/bugs/show_bug.cgi?id=6075
Summary: Using atomic operations creates multiple, distinct
function declarations
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Semantic Analyzer
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
As reported here:
http://lists.cs.uiuc.edu/pipermail/cfe-dev/2010-January/007506.html
The following code creates two FunctionDecls for __sync_fetch_and_add, which do
*not* share a canonical declaration:
void foo() {
int i;
__sync_fetch_and_add(&i, 1);
__sync_fetch_and_add(&i, 1);
}
We should probably just create one FunctionDecl, or at the very least be
careful to link the FunctionDecls together.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs