[LLVMbugs] [Bug 6666] New: llvm-gcc fails to emit volatile for volatile array struct argument?
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sun Mar 21 06:18:35 PDT 2010
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: unassignedbugs at nondot.org
ReportedBy: zhousheng00 at gmail.com
CC: llvmbugs at cs.uiuc.edu
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.
More information about the llvm-bugs
mailing list