[llvm-bugs] [Bug 32226] New: Clang does not record command line options in objects built

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Mar 10 09:16:43 PST 2017


https://bugs.llvm.org/show_bug.cgi?id=32226

            Bug ID: 32226
           Summary: Clang does not record command line options in objects
                    built
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         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.
Link: https://bugs.chromium.org/p/chromium/issues/detail?id=669699

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.

To reproduce:

Build a object with clang/gcc with option -g.
Then use "readelf --debug-dump=info" to check the object, search for
DW_AT_producer.

-- 
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/20170310/379eea45/attachment.html>


More information about the llvm-bugs mailing list