http://llvm.org/bugs/show_bug.cgi?id=2260
Summary: sin of omission: load from volatile
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]
CC: [email protected]
This is observed for llvm + gcc-4.2 version 50368, on Ubuntu Feisty on x86-32.
This input:
volatile int g_1;
void foo (void)
{
g_1;
}
Compiled like this:
llvm-gcc -O1 -S small.c
Produces:
foo:
pushl %ebp
movl %esp, %ebp
popl %ebp
ret
It is necessary to load from g_1.
--
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