[llvm-bugs] [Bug 42138] Different codegen with/without -g
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Jan 8 03:05:45 PST 2021
https://bugs.llvm.org/show_bug.cgi?id=42138
Zhiwei Chen <chenzhiwei03 at kuaishou.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |chenzhiwei03 at kuaishou.com
Status|RESOLVED |REOPENED
Resolution|FIXED |---
--- Comment #13 from Zhiwei Chen <chenzhiwei03 at kuaishou.com> ---
It can be reproduced using the PowerParser.ii.cc by clang
7809fa20400000fd40b4a4b56696c7fbcd0f0fa9 (committed at 2021-01-06). So I decide
to reopen it.
> clang -w -O1 -c PowerParser.ii.cc -o dbg.o -g
> clang -w -O1 -c PowerParser.ii.cc -o rel.o
Then
> objdump -d dbg.o > dbg_objdump
> objdump -d rel.o > rel_objdump
> diff dbg_objdump rel_objdump
2c2
< dbg.o: file format elf64-x86-64
---
> rel.o: file format elf64-x86-64
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)
---
> 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
--
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/20210108/a92dd288/attachment-0001.html>
More information about the llvm-bugs
mailing list