Hi,
this dump ICEs becuase the locations are still cached.  There is no point of 
dumping
this because we now output warning.

Bootstrapped/regtested x86_64-linux, comitted.

Honza

        * ipa-devirt.c (add_type_duplicate): Remove redundant ODR violation
        dump
Index: ipa-devirt.c
===================================================================
--- ipa-devirt.c        (revision 231020)
+++ ipa-devirt.c        (working copy)
@@ -1969,15 +1969,6 @@ add_type_duplicate (odr_type val, tree t
       merge = false;
       odr_violation_reported = true;
       val->odr_violated = true;
-      if (symtab->dump_file)
-       {
-         fprintf (symtab->dump_file, "ODR violation\n");
-
-         print_node (symtab->dump_file, "", val->type, 0);
-         putc ('\n',symtab->dump_file);
-         print_node (symtab->dump_file, "", type, 0);
-         putc ('\n',symtab->dump_file);
-       }
     }
   gcc_assert (val->odr_violated || !odr_must_violate);
   /* Sanity check that all bases will be build same way again.  */

Reply via email to