]> granicus.if.org Git - clang/commit
Revert "Revert r305164/5/7."
authorSaleem Abdulrasool <compnerd@compnerd.org>
Fri, 23 Jun 2017 15:34:16 +0000 (15:34 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Fri, 23 Jun 2017 15:34:16 +0000 (15:34 +0000)
commit418fa968089358756aafbb9eb06429fbad2ce88a
tree66a9374f0d544f9521e3b725f97635075a348fc8
parent4b3bb6fed5ee72f92da9b8028e4c5040cbe329a5
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@306115 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Driver/CC1Options.td
include/clang/Driver/Options.td
lib/Driver/ToolChains/Clang.cpp
lib/Driver/ToolChains/Gnu.cpp
lib/Frontend/CompilerInvocation.cpp
test/Driver/compress-noias.c [new file with mode: 0644]
test/Driver/compress.c
test/Driver/nozlibcompress.c
test/Misc/cc1as-compress.s [new file with mode: 0644]
tools/driver/cc1as_main.cpp