forked from Imagelibrary/binutils-gdb
gdb/
Do not rely on FIELD_LOC_KIND_BITPOS being zero. * ada-lang.c (ada_template_to_fixed_record_type_1): Replace TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS. * gdbtypes.c (append_flags_type_flag): Likewise, twice. * jv-lang.c (java_link_class_type): Likewise, once. * stabsread.c (read_enum_type): Likewise.
This commit is contained in:
@@ -7445,7 +7445,7 @@ ada_template_to_fixed_record_type_1 (struct type *type,
|
||||
{
|
||||
off = align_value (off, field_alignment (type, f))
|
||||
+ TYPE_FIELD_BITPOS (type, f);
|
||||
TYPE_FIELD_BITPOS (rtype, f) = off;
|
||||
SET_FIELD_BITPOS (TYPE_FIELD (rtype, f), off);
|
||||
TYPE_FIELD_BITSIZE (rtype, f) = 0;
|
||||
|
||||
if (ada_is_variant_part (type, f))
|
||||
|
||||
Reference in New Issue
Block a user