[llvm-bugs] [Bug 32226] New: Clang does not record command line options in objects built
llvm-bugs at lists.llvm.org
Fri Mar 10 09:16:43 PST 2017
Bug ID: 32226
Summary: Clang does not record command line options in objects
Component: LLVM Codegen
Assignee: unassignedclangbugs at nondot.org
Reporter: zhizhouy at google.com
CC: llvm-bugs at lists.llvm.org
This bug is originally from chromium.
GCC records the command line options of how the object was built.
It takes -grecord-gcc-switches default as on, and record the options into
DW_AT_producer in DWARF as debug info.
While in clang, DW_AT_producer only records current version of the clang.
Build a object with clang/gcc with option -g.
Then use "readelf --debug-dump=info" to check the object, search for
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-bugs