* 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

@@ -4090,6 +4090,8 @@ read_struct_type (char **pp, struct type *type, struct objfile *objfile)
type = error_type (pp, objfile);
}
/* Fix up any cv-qualified versions of this type. */
finish_cv_type (type);
do_cleanups (back_to);
return (type);
}