summaryrefslogtreecommitdiffstats
path: root/clang/test/Driver/compress.c
Commit message (Collapse)AuthorAgeFilesLines
* [cc1as] Change -compress-debug-sections= to use --Fangrui Song2019-05-111-4/+4
| | | | | | The double dash form is documented by GNU as, used by gcc, and accepted by llvm-mc. llvm-svn: 360495
* Revert "Revert r305164/5/7."Saleem Abdulrasool2017-06-231-5/+33
| | | | | | | | | | | | | | | | | | | | | | | 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
* Revert r305164/5/7.Daniel Jasper2017-06-121-33/+5
| | | | | | | | | | | | | | cc1as does not currently access the "--" version of this flag. At the very least this needs to be fixed and proper test cases need to be added. Simple reproducer: clang -Wa,--compress-debug-sections /tmp/test.cc Result: error: unknown argument: '--compress-debug-sections' llvm-svn: 305182
* test: attempt to repair build botsSaleem Abdulrasool2017-06-111-14/+0
| | | | | | | Split the no-ias tests and give them a target to ensure that they go down the GNU toolchain path. Adjust the no compression support tests. llvm-svn: 305167
* Driver: add support for `-gz` and `-gz=`Saleem Abdulrasool2017-06-111-0/+30
| | | | | | | | | | | | | | | | | These options control the behaviour of the compression of debug info sections on ELF targets. Our behaviour slightly diverges from the behaviour of GCC. `-gz` maps to the `-compress-debug-sections` rather than `-compress-debug-sections=zlib` or `-compress-debug-sections=zlib-gnu`. This small divergence allows us to be compatible across versions of binutils (=zlib support was introduced in 2.26, while earlier versions only support =zlib-gnu). This also allows users to not have to worry about the version of the assembler they may be using if they are not using the IAS. Previously, users would have had to go through the internal option `-compress-debug-sectionss` and pass that through to the assembler, which is no longer needed. llvm-svn: 305165
* Driver: pass along [-]-[no]compress-debug-sections unfilteredSaleem Abdulrasool2017-06-111-5/+17
| | | | | | | | | | | | Rather than validating the flags, pass them through without any validation. Arguments passed via -Wa or -Xassembler are passed directly to the assembler without validation. The validation was previously required since we did not provide proper driver level support for controlling the debug compression on ELF targets. A subsequent change will add support for the `-gz` and `-gz=` flags which provide proper driver level control of the ELF compressed debug sections. llvm-svn: 305164
* Fix up compression related test casesDavid Blaikie2014-04-011-3/+7
| | | | | | | | | Fallout from r205261, ensure it doesn't matter how we disable compressed debug info, even if zlib is missing and that we warn when we don't have zlib and don't warn when we do, all while silently suppressing these tests on the systems they weren't intended for... llvm-svn: 205271
* Warn when requesting compress-debug-sections and zlib is not availableDavid Blaikie2014-03-311-0/+4
Another shot in the dark, since I do have zlib installed. Will be watching the bots for fallout. llvm-svn: 205265
OpenPOWER on IntegriCloud