This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] Fix PR 55364: ICE in remove_addr_table_entry with -gsplit-dwarf


This patch fixes an ICE in remove_addr_table_entry, where we try to
remove the .debug_addr entries for an expression where they've already
been removed earlier in the loop.

-cary


2013-03-05   Sterling Augustine  <saugustine@google.com>
             Cary Coutant  <ccoutant@google.com>

        PR debug/55364
        * gcc/dwarf2out.c (resolve_addr): Don't call
        remove_loc_list_addr_table_entries a second time for the same
        expression.


Index: gcc/dwarf2out.c
===================================================================
--- gcc/dwarf2out.c     (revision 196479)
+++ gcc/dwarf2out.c     (working copy)
@@ -22691,8 +22691,6 @@ resolve_addr (dw_die_ref die)
            else
              {
                loc->replaced = 1;
-                if (dwarf_split_debug_info)
-                  remove_loc_list_addr_table_entries (loc->expr);
                loc->dw_loc_next = *start;
              }
          }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]