http://llvm.org/bugs/show_bug.cgi?id=8267
Summary: volatile structs are broken!
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]
reg...@john-home:~$ clang -O small.c -S -o -
.file "small.c"
.text
.globl func_1
.align 16, 0x90
.type func_1,@function
func_1:
pushl %ebp
movl %esp, %ebp
popl %ebp
ret
.Ltmp0:
.size func_1, .Ltmp0-func_1
.type g_18,@object
.data
.globl g_18
.align 8
g_18:
.long 4294967290
.size g_18, 4
.section .note.GNU-stack,"",@progbits
reg...@john-home:~$ cat small.c
struct S1
{
int f0;
};
volatile struct S1 g_18 = { -6 };
void
func_1 (void)
{
g_18 = g_18;
}
reg...@john-home:~$ clang -v
clang version 2.9 (trunk 115236)
Target: i386-pc-linux-gnu
Thread model: posix
--
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