[LLVMbugs] [Bug 15034] New: 64-bit __atomic_add_fetch(__ATOMIC_RELAXED) is not supported with -m32

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Jan 22 05:46:01 PST 2013


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: unassignedbugs at nondot.org
        ReportedBy: kcc at google.com
                CC: llvmbugs at cs.uiuc.edu, richard-llvm at metafoo.co.uk
    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.



More information about the llvm-bugs mailing list