Commit dd2a16c7 by Eric Botcazou

re PR bootstrap/92783 (SEGV in field_byte_offset)

	PR bootstrap/92783
	* gcc-interface/utils.c (rest_of_record_type_compilation): Move down
	the guard for the position of fields in the descriptive type.

From-SVN: r278948
parent 34dda804
......@@ -2246,13 +2246,6 @@ rest_of_record_type_compilation (tree record_type)
pos = compute_related_constant (curpos, last_pos);
}
/* If we can't compute a position, set it to zero.
??? We really should abort here, but it's too much work
to get this correct for all cases. */
if (!pos)
pos = bitsize_zero_node;
/* See if this type is variable-sized and make a pointer type
and indicate the indirection if so. Beware that the debug
back-end may adjust the position computed above according
......@@ -2273,6 +2266,13 @@ rest_of_record_type_compilation (tree record_type)
}
}
/* If we can't compute a position, set it to zero.
??? We really should abort here, but it's too much work
to get this correct for all cases. */
if (!pos)
pos = bitsize_zero_node;
/* Make a new field name, if necessary. */
if (var || align != 0)
{
......
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