http://llvm.org/bugs/show_bug.cgi?id=9027
Summary: volatile struct bug
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
The struct member needs to be loaded and stored.
regehr@home:~$ clang -v
clang version 2.9 (trunk 123968)
Target: i386-pc-linux-gnu
Thread model: posix
regehr@home:~$ clang -O vol.c -S -o - -fomit-frame-pointer
foo: # @foo
ret
regehr@home:~$ cat vol.c
struct s2 {
volatile int x;
};
struct s2 s;
void foo (void) {
s = s;
}
--
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