[all-commits] [llvm/llvm-project] 2484e9: [Driver] Clean up -gz & --compress-debug-sections

Fangrui Song via All-commits all-commits at lists.llvm.org
Mon Oct 19 23:06:51 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 2484e9159c54def19aac69c4a217a55329da54d2
      https://github.com/llvm/llvm-project/commit/2484e9159c54def19aac69c4a217a55329da54d2
  Author: Fangrui Song <i at maskray.me>
  Date:   2020-10-19 (Mon, 19 Oct 2020)

  Changed paths:
    M clang/include/clang/Driver/Options.td
    M clang/lib/Driver/ToolChains/Clang.cpp
    M clang/lib/Frontend/CompilerInvocation.cpp
    M clang/test/Driver/compress-noias.c
    M clang/test/Driver/compress.c
    M clang/test/Misc/cc1as-compress.s
    M clang/tools/driver/cc1as_main.cpp

  Log Message:
  -----------
  [Driver] Clean up -gz & --compress-debug-sections

* Make cc1 and cc1as --compress-debug-sections an alias for --compress-debug-sections=zlib
* Make -gz an alias for -gz=zlib

The new behavior is consistent with GCC when binutils>=2.26 is detected:
-gz is translated to --compress-debug-sections=zlib instead of --compress-debug-sections.




More information about the All-commits mailing list