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: unassignedclangb...@nondot.org
          Reporter: zhizh...@google.com
                CC: llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to