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: [email protected]
Reporter: [email protected]
CC: [email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs