On Mon, 9 Sep 2019, Richard Biener wrote: > Like the following? > > Richard. > > 2019-09-09 Richard Biener <rguent...@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.
Thank you! I committed the minor editorial update below on top. Gerald 2019-12-22 Gerald Pfeifer <ger...@pfeifer.com> * doc/invoke.texi (-flto): Use "compile time" as a noun. Index: doc/invoke.texi =================================================================== --- doc/invoke.texi (revision 278735) +++ doc/invoke.texi (working copy) @@ -10447,7 +10447,7 @@ precedence; and for example @option{-ffp-contract= over @option{-ffp-contract=fast}. You can override them at link time. To enable debug info generation you need to supply @option{-g} at -compile-time. If any of the input files at link time were built +compile time. If any of the input files at link time were built with debug info generation enabled the link will enable debug info generation as well. Any elaborate debug info settings like the dwarf level @option{-gdwarf-5} need to be explicitly repeated