[Bug debug/65549] [4.9/5/6 Regression] crash in htab_hash_string with -flto -g

ebotcazou at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Apr 27 09:15:00 GMT 2015


Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:

           What    |Removed                     |Added
                 CC|                            |ebotcazou at gcc dot gnu.org

--- Comment #31 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
That's the prominent issue with LTO in Ada because there are a lot of nested
functions in Ada.  We use a local patch that fixes up the limbo list again:

@@ -24063,6 +24080,11 @@ dwarf2out_finish (const char *filename)
   resolve_addr (comp_unit_die ());
+  /* resolve_addr calls force_decl_die, which can put new DIEs on the limbo
+     list in LTO mode when nested functions are put in a different partition
+     than that of their parent function.  */
+  if (in_lto_p)
+    fixup_limbo_list ();
   move_marked_base_types ();

   for (node = deferred_asm_name; node; node = node->next)

More information about the Gcc-bugs mailing list