* dwarf2read.c (dwarf2_attach_fields_to_type): Don't set
authorTom Tromey <tromey@redhat.com>
Fri, 27 Aug 2010 21:03:39 +0000 (21:03 +0000)
committerTom Tromey <tromey@redhat.com>
Fri, 27 Aug 2010 21:03:39 +0000 (21:03 +0000)
TYPE_FIELD_IGNORE_BITS.

gdb/ChangeLog
gdb/dwarf2read.c

index 874a078af5d234400c241abd175b2a82f126cf65..5280cc488b107aed2546465ec3e8fe01eb51d4e9 100644 (file)
@@ -1,3 +1,8 @@
+2010-08-27  Tom Tromey  <tromey@redhat.com>
+
+       * dwarf2read.c (dwarf2_attach_fields_to_type): Don't set
+       TYPE_FIELD_IGNORE_BITS.
+
 2010-08-27  Doug Evans  <dje@google.com>
 
        * dwarf2read.c (dwarf2_per_objfile_free): Reorganize buffers to match
index 06ee486e65a8d8c3224438d2f7794436a0477db9..ebab2652ddd06e93f160703856e211b2e18f361b 100644 (file)
@@ -6266,9 +6266,9 @@ dwarf2_attach_fields_to_type (struct field_info *fip, struct type *type,
        (B_TYPE *) TYPE_ALLOC (type, B_BYTES (nfields));
       B_CLRALL (TYPE_FIELD_PROTECTED_BITS (type), nfields);
 
-      TYPE_FIELD_IGNORE_BITS (type) =
-       (B_TYPE *) TYPE_ALLOC (type, B_BYTES (nfields));
-      B_CLRALL (TYPE_FIELD_IGNORE_BITS (type), nfields);
+      /* We don't set TYPE_FIELD_IGNORE_BITS here.  The DWARF reader
+        never sets any bits in that array, so leaving it NULL lets us
+        save a little memory.  */
     }
 
   /* If the type has baseclasses, allocate and clear a bit vector for