From: Richard Biener Date: Thu, 17 Jan 2019 08:45:00 +0000 (+0000) Subject: re PR lto/86736 (g++.dg/asan/pr81021.C -O2 -flto -flto-partition=none ICE at dwarf2... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=63ece937a704ab7347e101c6485a0627b8a75712;p=gcc.git re PR lto/86736 (g++.dg/asan/pr81021.C -O2 -flto -flto-partition=none ICE at dwarf2out.c:31111) 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. From-SVN: r268010 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 170464af9ba..400e44a947c 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 a1b5a5eaf19..cd2e889a8cc 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;