Commit fca7c764 by Ian Lance Taylor Committed by Ian Lance Taylor

re PR go/78431 (ICE in go_append_padding, at godump.c:636)

	PR go/78431
	PR go/78432
	* godump.c (go_format_type): Always pass alignment as 1 when
	calling go_append_padding at end of struct/union.

From-SVN: r242728
parent f3878205
2016-11-22 Ian Lance Taylor <iant@golang.org>
PR go/78431
PR go/78432
* godump.c (go_format_type): Always pass alignment as 1 when
calling go_append_padding at end of struct/union.
2016-11-22 Jakub Jelinek <jakub@redhat.com>
PR target/78451
......@@ -1006,14 +1006,9 @@ go_format_type (struct godump_container *container, tree type,
}
}
/* Padding. */
{
unsigned int align_unit;
align_unit = (is_anon_record_or_union) ? 1 : TYPE_ALIGN_UNIT (type);
*p_art_i = go_append_padding
(ob, prev_field_end, TREE_INT_CST_LOW (TYPE_SIZE_UNIT (type)),
align_unit, *p_art_i, &prev_field_end);
}
*p_art_i = go_append_padding (ob, prev_field_end,
TREE_INT_CST_LOW (TYPE_SIZE_UNIT (type)),
1, *p_art_i, &prev_field_end);
/* Alignment. */
if (!is_anon_record_or_union
&& known_alignment < TYPE_ALIGN_UNIT (type))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment