+2017-03-06 Jakub Jelinek <jakub@redhat.com>
+
+ PR c++/79821
+ * dwarf2out.h (dw_vec_const): Change array type from unsigned char *
+ to void * for PCH reasons.
+ * dwarf2out.c (output_loc_operands, output_die): Cast
+ v.val_vec.array to unsigned char *.
+
2017-03-06 John David Anglin <danglin@gcc.gnu.org>
PR target 77850
elt_size /= 2;
len *= 2;
}
- for (i = 0, p = val2->v.val_vec.array;
+ for (i = 0, p = (unsigned char *) val2->v.val_vec.array;
i < len;
i++, p += elt_size)
dw2_asm_output_data (elt_size, extract_int (p, elt_size),
elt_size /= 2;
len *= 2;
}
- for (i = 0, p = val2->v.val_vec.array;
+ for (i = 0, p = (unsigned char *) val2->v.val_vec.array;
i < len;
i++, p += elt_size)
dw2_asm_output_data (elt_size, extract_int (p, elt_size),
elt_size /= 2;
len *= 2;
}
- for (i = 0, p = a->dw_attr_val.v.val_vec.array;
+ for (i = 0, p = (unsigned char *) a->dw_attr_val.v.val_vec.array;
i < len;
i++, p += elt_size)
dw2_asm_output_data (elt_size, extract_int (p, elt_size),
/* Describe a floating point constant value, or a vector constant value. */
struct GTY(()) dw_vec_const {
- unsigned char * GTY((atomic)) array;
+ void * GTY((atomic)) array;
unsigned length;
unsigned elt_size;
};