<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:chenzhiwei03@kuaishou.com" title="Zhiwei Chen <chenzhiwei03@kuaishou.com>"> <span class="fn">Zhiwei Chen</span></a>
</span> changed
<a class="bz_bug_link
bz_status_REOPENED "
title="REOPENED - Different codegen with/without -g"
href="https://bugs.llvm.org/show_bug.cgi?id=42138">bug 42138</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">CC</td>
<td>
</td>
<td>chenzhiwei03@kuaishou.com
</td>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>RESOLVED
</td>
<td>REOPENED
</td>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>FIXED
</td>
<td>---
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_REOPENED "
title="REOPENED - Different codegen with/without -g"
href="https://bugs.llvm.org/show_bug.cgi?id=42138#c13">Comment # 13</a>
on <a class="bz_bug_link
bz_status_REOPENED "
title="REOPENED - Different codegen with/without -g"
href="https://bugs.llvm.org/show_bug.cgi?id=42138">bug 42138</a>
from <span class="vcard"><a class="email" href="mailto:chenzhiwei03@kuaishou.com" title="Zhiwei Chen <chenzhiwei03@kuaishou.com>"> <span class="fn">Zhiwei Chen</span></a>
</span></b>
<pre>It can be reproduced using the PowerParser.ii.cc by clang
7809fa20400000fd40b4a4b56696c7fbcd0f0fa9 (committed at 2021-01-06). So I decide
to reopen it.
<span class="quote">> clang -w -O1 -c PowerParser.ii.cc -o dbg.o -g
> clang -w -O1 -c PowerParser.ii.cc -o rel.o</span >
Then
<span class="quote">> objdump -d dbg.o > dbg_objdump
> objdump -d rel.o > rel_objdump
> diff dbg_objdump rel_objdump</span >
2c2
< dbg.o: file format elf64-x86-64
---
<span class="quote">> rel.o: file format elf64-x86-64</span >
26,29c26,29
< 40: eb 0e jmp 50 <_ZN1k1lEv+0x50>
< 42: 66 2e 0f 1f 84 00 00 nopw %cs:0x0(%rax,%rax,1)
< 49: 00 00 00
< 4c: 0f 1f 40 00 nopl 0x0(%rax)
---
<span class="quote">> 40: e9 0b 00 00 00 jmpq 50 <_ZN1k1lEv+0x50>
> 45: 66 2e 0f 1f 84 00 00 nopw %cs:0x0(%rax,%rax,1)
> 4c: 00 00 00
> 4f: 90 nop</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>