http://llvm.org/bugs/show_bug.cgi?id=15034
Bug #: 15034
Summary: 64-bit __atomic_add_fetch(__ATOMIC_RELAXED) is not
supported with -m32
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: new bugs
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
% cat atomic_inc.cc
long long inc (volatile long long *x, long long z) {
return __atomic_add_fetch(x, z, __ATOMIC_RELAXED);
}
% clang -c -m32 -O2 atomic_inc.cc
atomic_inc.cc:2:11: error: cannot compile this atomic library call yet
return __atomic_add_fetch(x, z, __ATOMIC_RELAXED);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
the same code is properly compiled with gcc trunk
--
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