From: rguenth Date: Thu, 17 Jan 2019 08:45:00 +0000 (+0000) Subject: 2019-01-17 Richard Biener X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd130d9a8ce4928e33a97105bec5d5e6162f765f;p=thirdparty%2Fgcc.git 2019-01-17 Richard Biener PR lto/86736 * dwarf2out.c (want_pubnames): Never generate pubnames sections and friends for the LTO part of debug info. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@268010 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 170464af9ba3..400e44a947c1 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2019-01-17 Richard Biener + + PR lto/86736 + * dwarf2out.c (want_pubnames): Never generate pubnames sections + and friends for the LTO part of debug info. + 2019-01-17 Jakub Jelinek PR tree-optimization/86214 diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index a1b5a5eaf190..cd2e889a8ccd 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -11074,7 +11074,9 @@ output_comp_unit (dw_die_ref die, int output_if_empty, static inline bool want_pubnames (void) { - if (debug_info_level <= DINFO_LEVEL_TERSE) + if (debug_info_level <= DINFO_LEVEL_TERSE + /* Names and types go to the early debug part only. */ + || in_lto_p) return false; if (debug_generate_pub_sections != -1) return debug_generate_pub_sections;