diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2012-04-17 12:43:20 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2012-04-17 12:43:20 +0000 |
commit | 945b3a323089731de2e79dc318195c75d747435d (patch) | |
tree | 80b09350e10cccd40910ed209c964fa378045875 /gdb/stabsread.c | |
parent | da03bf4d5bf7cdf56a85d10b85b05028649f94f7 (diff) | |
download | gdb-945b3a323089731de2e79dc318195c75d747435d.zip gdb-945b3a323089731de2e79dc318195c75d747435d.tar.gz gdb-945b3a323089731de2e79dc318195c75d747435d.tar.bz2 |
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.
Diffstat (limited to 'gdb/stabsread.c')
-rw-r--r-- | gdb/stabsread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/stabsread.c b/gdb/stabsread.c index ac82652..39e0d7b 100644 --- a/gdb/stabsread.c +++ b/gdb/stabsread.c @@ -3730,7 +3730,7 @@ read_enum_type (char **pp, struct type *type, SYMBOL_TYPE (xsym) = type; TYPE_FIELD_NAME (type, n) = SYMBOL_LINKAGE_NAME (xsym); - TYPE_FIELD_BITPOS (type, n) = SYMBOL_VALUE (xsym); + SET_FIELD_BITPOS (TYPE_FIELD (type, n), SYMBOL_VALUE (xsym)); TYPE_FIELD_BITSIZE (type, n) = 0; } if (syms == osyms) |