llvm-project/clang/tools
Fangrui Song 7cf4603fae Reland D61689 Change -gz and -Wa,--compress-debug-sections to use gABI compression (SHF_COMPRESSED) with integrated assembler
This fixes an inconsistency: clang -c -gz -fno-integrated-as means SHF_COMPRESSED
while clang -c -gz -fintegrated-as means zlib-gnu.

---

Since July 15, 2015 (binutils-gdb commit
19a7fe52ae3d0971e67a134bcb1648899e21ae1c, included in 2.26), gas
--compress-debug-sections=zlib (gcc -gz) means zlib-gabi:
SHF_COMPRESSED. Before that GCC/binutils used zlib-gnu (.zdebug).

clang's -gz was introduced in rC306115 (Jun 2017) to indicate zlib-gnu. It
is 2020 now and it is not unreasonable to assume users of the new
feature to have new linkers (ld.bfd/gold >= 2.26, lld >= rLLD273661).

Change clang's default accordingly to improve standard conformance.
zlib-gnu becomes out of fashion and gets poorer toolchain support.
Its mangled names confuse tools and are more likely to cause problems.

Reviewed By: compnerd

Differential Revision: https://reviews.llvm.org/D61689
2020-08-03 15:12:01 -07:00
..
arcmt-test Revert "Use InitLLVM to setup a pretty stack printer" 2019-11-25 21:06:56 -05:00
c-arcmt-test [CMake] Use PRIVATE in target_link_libraries for executables 2017-12-05 21:49:56 +00:00
c-index-test Expose AtomicType in the libclang C API. 2020-04-16 08:06:58 -04:00
clang-check Add -ast-dump-decl-types flag to include types of value and type 2020-06-22 16:47:51 -07:00
clang-diff Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
clang-extdef-mapping [NFC] Add missing 'override's 2020-07-20 19:52:49 -07:00
clang-format Revert "Add Debug Info Size to Symbol Status" 2020-07-24 13:28:29 -07:00
clang-format-vs clang-format-vs : Fix Unicode formatting 2019-11-27 09:58:59 +01:00
clang-fuzzer [CMake] Make `intrinsics_gen` dependency unconditional. 2020-07-17 16:43:17 -07:00
clang-import-test [CMake] Make `intrinsics_gen` dependency unconditional. 2020-07-17 16:43:17 -07:00
clang-offload-bundler [CMake] Make `intrinsics_gen` dependency unconditional. 2020-07-17 16:43:17 -07:00
clang-offload-wrapper [CMake] Make `intrinsics_gen` dependency unconditional. 2020-07-17 16:43:17 -07:00
clang-refactor Avoid including FileManager.h from SourceManager.h 2020-03-11 13:53:12 -07:00
clang-rename Rename F_{None,Text,Append} to OF_{None,Text,Append}. NFC 2019-08-05 05:43:48 +00:00
clang-scan-deps [NFC] Add missing 'override's 2020-07-20 19:52:49 -07:00
clang-shlib [clang-shlib] Don't link with static clang libraries 2020-07-10 14:28:05 -07:00
diag-build
diagtool [diagtool] Install diagtool when LLVM_INSTALL_TOOLCHAIN_ONLY is ON. 2020-05-29 16:25:06 -07:00
driver Reland D61689 Change -gz and -Wa,--compress-debug-sections to use gABI compression (SHF_COMPRESSED) with integrated assembler 2020-08-03 15:12:01 -07:00
libclang [clang] Fix libdl linking for libclang in standalone mode 2020-07-24 00:10:22 +03:00
scan-build [analyzer] scan-build: Fix silencing multiple core checkers. 2020-07-18 10:37:00 -07:00
scan-build-py [CMake] Bump CMake minimum version to 3.13.4 2020-07-22 14:25:07 -04:00
scan-view [clang] [cmake] Add distribution install targets for remaining components 2019-10-04 05:43:20 +00:00
CMakeLists.txt [Clang][OpenMP Offload] Add new tool for wrapping offload device binaries 2019-10-09 20:42:58 +00:00