llvm-project/clang/lib/Driver/ToolChains
Saleem Abdulrasool d064e91ece Revert "Revert r305164/5/7."
Restore the `-gz` option to the driver with some minor tweaks to handle
the additional case for `-Wa,--compress-debug-sections`.

This intends to make the compression of the debug information
controllable from the driver.  The following is the behaviour:

  -gz           enable compression (ambiguous for format, will default to zlib-gnu)
  -gz=none      disable compression
  -gz=zlib-gnu  enable compression (deprecated GNU style zlib compression)
  -gz=zlib      enable compression (zlib based compression)

Although -Wa,-compress-debug-sections works, it should be discouraged
when using the driver to invoke the assembler.  However, we permit the
assembler to accept the GNU as style argument --compress-debug-sections
to maintain compatibility.

Note, -gz/-gz= does *NOT* imply -g.  That is, you need to additionally
specific -g for debug information to be generated.

llvm-svn: 306115
2017-06-23 15:34:16 +00:00
..
Arch Reapply r304929 [mips] Add runtime options to enable/disable madd/sub.fmt 2017-06-07 23:51:52 +00:00
AMDGPU.cpp
AMDGPU.h
AVR.cpp
AVR.h
BareMetal.cpp Appease more buildbots about r303873 2017-05-25 18:55:22 +00:00
BareMetal.h Don't defer to the GCC driver for linking arm-baremetal 2017-05-25 15:42:13 +00:00
Bitrig.cpp
Bitrig.h
Clang.cpp Revert "Revert r305164/5/7." 2017-06-23 15:34:16 +00:00
Clang.h
CloudABI.cpp
CloudABI.h
CommonArgs.cpp Revert of r305066 "Reapply Frontend support for Nios2 target" 2017-06-09 12:09:29 +00:00
CommonArgs.h [Driver] Unify linking of OpenMP runtime. NFCI. 2017-04-19 13:55:39 +00:00
Contiki.cpp
Contiki.h
CrossWindows.cpp Driver: only inject libstdc++ paths when needed on CrossWindows 2017-05-04 19:18:21 +00:00
CrossWindows.h
Cuda.cpp
Cuda.h
Darwin.cpp Revert r305678: [driver][macOS] Pick the system version for the 2017-06-21 10:27:24 +00:00
Darwin.h Flag -fsanitize=fuzzer to enable libfuzzer 2017-04-24 18:23:24 +00:00
DragonFly.cpp
DragonFly.h
FreeBSD.cpp
FreeBSD.h
Fuchsia.cpp
Fuchsia.h
Gnu.cpp Revert "Revert r305164/5/7." 2017-06-23 15:34:16 +00:00
Gnu.h
Haiku.cpp Driver/ToolChains: Remove extra semicolons. NFC 2017-03-09 00:14:57 +00:00
Haiku.h
Hexagon.cpp [Hexagon] Handle -O4 when checking optimization level 2017-04-25 21:31:55 +00:00
Hexagon.h [Hexagon] Set -ffp-contract=fast at -O3 unless explicitly specified 2017-04-25 20:51:51 +00:00
Lanai.h
Linux.cpp Fixed warning: enum constant in boolean context. 2017-06-03 16:47:06 +00:00
Linux.h
MSVC.cpp [Driver] Don't force .exe suffix for lld 2017-06-06 02:06:28 +00:00
MSVC.h Fix uninitialized value. 2017-03-15 19:54:25 +00:00
MSVCSetupApi.h Update clang-cl driver for MSVC 2017. 2017-03-15 16:07:35 +00:00
MinGW.cpp Driver: Better detection of mingw-gcc 2017-04-18 14:27:36 +00:00
MinGW.h Driver: Better detection of mingw-gcc 2017-04-18 14:27:36 +00:00
Minix.cpp
Minix.h
MipsLinux.cpp Driver/ToolChains: Mips -> MipsLinux 2017-03-08 22:36:04 +00:00
MipsLinux.h Driver/ToolChains: Mips -> MipsLinux 2017-03-08 22:36:04 +00:00
Myriad.cpp Added LLVM_FALLTHROUGH to address gcc warning: this statement may fall through. 2017-05-23 05:17:49 +00:00
Myriad.h
NaCl.cpp
NaCl.h
NetBSD.cpp
NetBSD.h
OpenBSD.cpp
OpenBSD.h
PS4CPU.cpp
PS4CPU.h
Solaris.cpp
Solaris.h
TCE.cpp Driver/ToolChains: Remove extra semicolons. NFC 2017-03-09 00:14:57 +00:00
TCE.h
WebAssembly.cpp [WebAssembly] Add default -allow-undefined-file to linker args 2017-06-23 00:02:55 +00:00
WebAssembly.h
XCore.cpp Driver/ToolChains: Remove extra semicolons. NFC 2017-03-09 00:14:57 +00:00
XCore.h