]> git.lizzy.rs Git - rust.git/commit
Add -C link-dead-code option r=alexcrichton
authorJohan Lorenzo <jlorenzo@mozilla.com>
Tue, 2 Feb 2016 17:56:59 +0000 (17:56 +0000)
committerJohan Lorenzo <jlorenzo@mozilla.com>
Thu, 11 Feb 2016 10:14:32 +0000 (11:14 +0100)
commit274f27a476d48a006f8e7142d4a239f63ea2d403
treed448d51eecf2e31e071c5acccab5dd9d69bf3523
parentb9732ed1471689976fc32fa6757fd29c5a587f5d
Add -C link-dead-code option r=alexcrichton

Turning gc-sections off improves code coverage based for tools which
use DWARF debugging information (like kcov). Otherwise dead code is
stripped and kcov returns a coverage percentage that doesn't reflect
reality.
src/librustc/session/config.rs
src/librustc_trans/back/link.rs
src/test/run-make/codegen-options-parsing/Makefile