re PR lto/86736 (g++.dg/asan/pr81021.C -O2 -flto -flto-partition=none ICE at dwarf2...
authorRichard Biener <rguenther@suse.de>
Thu, 17 Jan 2019 08:45:00 +0000 (08:45 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 17 Jan 2019 08:45:00 +0000 (08:45 +0000)
2019-01-17  Richard Biener  <rguenther@suse.de>

PR lto/86736
* dwarf2out.c (want_pubnames): Never generate pubnames sections
and friends for the LTO part of debug info.

From-SVN: r268010

gcc/ChangeLog
gcc/dwarf2out.c

index 170464af9ba3703d8a93a64d18c9c3978731ff48..400e44a947c1d4fd21bd9c631f8b5b907070804f 100644 (file)
@@ -1,3 +1,9 @@
+2019-01-17  Richard Biener  <rguenther@suse.de>
+
+       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  <jakub@redhat.com>
 
        PR tree-optimization/86214
index a1b5a5eaf19000452f3f03e48c3874d9aef9b494..cd2e889a8ccdf180bf0f7bff4d54ed2c8e399774 100644 (file)
@@ -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;