[LLVMbugs] [Bug 9675] New: Calling __sync_sub_and_fetch with -mno-sse and -O0 crashes clang

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Apr 10 22:19:09 PDT 2011


           Summary: Calling __sync_sub_and_fetch with -mno-sse and -O0
                    crashes clang
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: bruce.cran at gmail.com
                CC: llvmbugs at cs.uiuc.edu

Building code that calls __sync_sub_and_fetch with -mno-sse and -O0 causes
clang to crash with "Cannot emit physreg copy instruction" in

int main(int argc, char **argv)
  int i = 1;
  __sync_sub_and_fetch(&i, 1);
  return 0;

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