<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - wrong debug info at -O3"
href="https://bugs.llvm.org/show_bug.cgi?id=46114">46114</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>wrong debug info at -O3
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>LLVM Codegen
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>qrzhang@gatech.edu
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org, neeilans@live.com, richard-llvm@metafoo.co.uk
</td>
</tr></table>
<p>
<div>
<pre>Bisection points to e5f07080b8ac73dd573e81a186925a122ab8a39d.
l_52 = 1 is a wrong value.
$ clang-trunk -g -O3 abc.c
$ lldb-trunk -s cmds -b a.out
(lldb) b 6
Breakpoint 1: where = a.out`main + 6 at abc.c:6:20, address =
0x0000000000400486
(lldb) r
Process 2616 stopped
* thread #1, name = 'a.out', stop reason = breakpoint 1.1
frame #0: 0x0000000000400486 a.out`main at abc.c:6:20
3 char c;
4 int main() {
5 int d = a, l_52 = 0;
-> 6 b = (l_52 = a) - c; // stop here
7 if (d) {
8 int e=1;
9 }
(lldb) p l_52
(int) $0 = 1
$ cat abc.c
int a = 1;
short b;
char c;
int main() {
int d = a, l_52 = 0;
b = (l_52 = a) - c; // qirun0
if (d) {
int e=1;
}
}
$ cat cmds
b 6
r
p l_52
kill
q</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>