[LLVMbugs] [Bug 2260] New: sin of omission: load from volatile
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Mon Apr 28 12:16:39 PDT 2008
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: unassignedbugs at nondot.org
ReportedBy: regehr at cs.utah.edu
CC: llvmbugs at cs.uiuc.edu
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.
More information about the llvm-bugs
mailing list