<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 - [fuzzDI] -O1 + `-g` cause the generated code to change."
href="https://bugs.llvm.org/show_bug.cgi?id=37306">37306</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[fuzzDI] -O1 + `-g` cause the generated code to change.
</td>
</tr>
<tr>
<th>Product</th>
<td>libraries
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</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>DebugInfo
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>davide@freebsd.org
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>I'll update the bug title once this is triaged/analyzed.
/Users/dcci/work/llvm/build/bin/clang -Wno-everything try.c -O1 -o try-nodebug
$ cat red.c
b, a, c;
d() { return b; }
f(g) {
int e = d();
c && (a = e + g);
}
main() {}
Difference between text sections (with and without -g)
$ diff text-nodebug text-debug
3,4c3,4
< 100000f70 488d0591 00000083 3800741e 554889e5 H.......8.t.UH..
< 100000f80 535089fb e8d7ffff ff01d848 8d0d6e00 SP.........H..n.
---
<span class="quote">> 100000f70 554889e5 535089fb 488d0589 00000083 UH..SP..H.......
> 100000f80 38007410 e8d7ffff ff01d848 8d0d6e00 8.t........H..n.</span ></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>