]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* dwarf2read.c (dwarf2_build_psymtabs_hard): Estimate the initial
authorDaniel Jacobowitz <drow@false.org>
Sat, 21 Feb 2004 21:00:12 +0000 (21:00 +0000)
committerDaniel Jacobowitz <drow@false.org>
Sat, 21 Feb 2004 21:00:12 +0000 (21:00 +0000)
size of the hash table.

gdb/ChangeLog.intercu
gdb/dwarf2read.c

index 27905a6aa2bb1f8d1393b70dedd2b7f1af99dde1..087fe18a41626c8f2be14d69298a3a3d4ad443ea 100644 (file)
@@ -1,3 +1,8 @@
+2004-02-21  Daniel Jacobowitz  <drow@mvista.com>
+
+       * dwarf2read.c (dwarf2_build_psymtabs_hard): Estimate the initial
+       size of the hash table.
+
 2004-02-21  Daniel Jacobowitz  <drow@mvista.com>
 
        * dwarf2read.c (struct dwarf2_cu): Add abbrev_obstack.
index 6c135f0cafa9ba6103f10b76e59858c0140169fe..e77497330537ce281fe0c1a63a099aedbecc1b59 100644 (file)
@@ -1346,7 +1346,8 @@ dwarf2_build_psymtabs_hard (struct objfile *objfile, int mainline)
 
          obstack_init (&cu.partial_die_obstack);
          cu.partial_dies
-           = htab_create_alloc_ex (29, partial_die_hash,
+           = htab_create_alloc_ex (cu.header.length / 12,
+                                   partial_die_hash,
                                    partial_die_eq,
                                    NULL,
                                    &cu.partial_die_obstack,