I forgot to include the dwarf2out.c:file_table. Stats are printed when -g. See attached patch. Additional Changelog:

        * dwarf2out.c (dwarf2out_finish): Call htab_dump_statistics() if
        -fmem-report.


Dimitris

=== modified file 'gcc/dwarf2out.c'
--- gcc/dwarf2out.c     2011-06-06 17:46:00 +0000
+++ gcc/dwarf2out.c     2011-08-09 07:56:11 +0000
@@ -24820,6 +24820,13 @@ dwarf2out_finish (const char *filename)
        add_comp_dir_attribute (comp_unit_die ());
     }
 
+  if (mem_report)
+    {
+      fprintf(stderr, "\ndwarf2out.c: file_table hash table statistics:\n");
+      htab_dump_statistics(file_table, sizeof (struct dwarf_file_data));
+    }
+
+
   for (i = 0; i < VEC_length (deferred_locations, deferred_locations_list); 
i++)
     {
       add_location_or_const_value_attribute (

Reply via email to