http://llvm.org/bugs/show_bug.cgi?id=6666

           Summary: llvm-gcc fails to emit volatile for volatile array
                    struct argument?
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


Case here:

struct X {
  int a;
  int b;
  int c;
};
int foo(volatile struct X x[100]) {
  int i;
  int r = 0;
  for (i = 0; i < 100; ++i)
    r += x[i].a;
}

With ToT, in the emitted ll code, the volatile for LoadInst of x[100] is lost.

-- 
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

Reply via email to