[LLVMbugs] [Bug 15748] New: clang hangs at -O3 on loop
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sun Apr 14 17:38:47 PDT 2013
http://llvm.org/bugs/show_bug.cgi?id=15748
Bug ID: 15748
Summary: clang hangs at -O3 on loop
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: LLVM Codegen
Assignee: unassignedclangbugs at nondot.org
Reporter: dhazeghi at yahoo.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
The following testcase (generated by csmith) causes current clang trunk to hang
when compiling at -O3.
This does not appear to be the same as 15714, which was recently fixed.
$ clang -v
clang version 3.3 (trunk 179483)
Target: x86_64-pc-linux-gnu
Thread model: posix
$ clang -O2 -c try.c
$ clang -O3 -c try.c
^C
--------------
int a, b, c, d;
void fn1 ()
{
int e = 0;
for (; a; a++)
{
int *f = &c;
d || (e |= *f);
b ^= *f = 1;
}
}
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130415/490faa2a/attachment.html>
More information about the llvm-bugs
mailing list