[LLVMbugs] [Bug 2163] New: Codegen illegally reorders division by zero before function call
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Tue Mar 18 15:03:39 PDT 2008
http://llvm.org/bugs/show_bug.cgi?id=2163
Summary: Codegen illegally reorders division by zero before
function call
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: sharparrow1 at yahoo.com
CC: llvmbugs at cs.uiuc.edu
Testcase:
#include <stdlib.h>
int x() {exit(0);}
int main(void) {x(); return 1/0;}
Running this through llvm-gcc -O0, generates a program that crashes. This
program should not crash. (The semantics of this program are well-defined
because the division by zero should not end up being executed.)
--
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