aboutsummaryrefslogtreecommitdiff
path: root/gdb/ada-lang.c
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2012-04-17 12:43:20 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2012-04-17 12:43:20 +0000
commit945b3a323089731de2e79dc318195c75d747435d (patch)
tree80b09350e10cccd40910ed209c964fa378045875 /gdb/ada-lang.c
parentda03bf4d5bf7cdf56a85d10b85b05028649f94f7 (diff)
downloadgdb-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/ada-lang.c')
-rw-r--r--gdb/ada-lang.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c
index 031609d..2e1df7a 100644
--- a/gdb/ada-lang.c
+++ b/gdb/ada-lang.c
@@ -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))