lto-opts.c (lto_write_options): Stream -g when debug is enabled.
authorRichard Biener <rguenther@suse.de>
Wed, 11 Sep 2019 11:20:35 +0000 (11:20 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 11 Sep 2019 11:20:35 +0000 (11:20 +0000)
commit5a307ee54bca63865b6e5e8ad690720adf0b9d78
tree94e483c2a7f7db580d29f337e1cd73169eb6a10e
parent46dfa8ad6c18feb45d35734eae38798edb7c38cd
lto-opts.c (lto_write_options): Stream -g when debug is enabled.

2019-09-11  Richard Biener  <rguenther@suse.de>

* lto-opts.c (lto_write_options): Stream -g when debug is enabled.
* lto-wrapper.c (merge_and_complain): Pick up -g.
(append_compiler_options): Likewise.
(run_gcc): Re-instantiate handling -g0 at link-time.
* doc/invoke.texi (flto): Document debug info generation.

From-SVN: r275640
gcc/ChangeLog
gcc/doc/invoke.texi
gcc/lto-opts.c
gcc/lto-wrapper.c