* gdbtypes.c (finish_cv_type): New function.

(check_typedef): Remove ``register'' keyword from argument.
        Preserve const and volatile attributes across filling in
        opaque types.
        * gdbtypes.h (finish_cv_type): Add prototype.

        * hp-symtab-read.c (hpread_read_struct_type): Call finish_cv_type.
        * stabsread.c (read_struct_type): Likewise.
        * dwarf2read.c (read_structure_scope): Likewise.  Remove redundant
        assignment to die->type.
This commit is contained in:
Daniel Jacobowitz
2001-12-07 22:11:51 +00:00
parent 5178b9d602
commit a02fd225ed
6 changed files with 73 additions and 8 deletions

View File

@@ -2381,7 +2381,7 @@ read_structure_scope (struct die_info *die, struct objfile *objfile,
TYPE_FLAGS (type) |= TYPE_FLAG_STUB;
}
die->type = type;
finish_cv_type (die->type);
}
/* Given a pointer to a die which begins an enumeration, process all