stor-layout.c (place_field): Treat overflowing DECL_SIZE_UNIT as if size were variable.

* stor-layout.c (place_field): Treat overflowing DECL_SIZE_UNIT
	as if size were variable.

From-SVN: r38307
This commit is contained in:
Richard Kenner 2000-12-16 15:46:00 +00:00 committed by Richard Kenner
parent 23cb454af9
commit 67011d8196
2 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,8 @@
Sat Dec 16 10:41:11 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* stor-layout.c (place_field): Treat overflowing DECL_SIZE_UNIT
as if size were variable.
* expmed.c (expand_mult): Write REG_EQUAL note with proper mode.
2000-12-16 Neil Booth <neil@daikokuya.demon.co.uk>

View File

@ -893,7 +893,8 @@ place_field (rli, field)
is printed in finish_struct. */
if (DECL_SIZE (field) == 0)
/* Do nothing. */;
else if (! TREE_CONSTANT (DECL_SIZE_UNIT (field)))
else if (TREE_CODE (DECL_SIZE_UNIT (field)) != INTEGER_CST
|| TREE_CONSTANT_OVERFLOW (DECL_SIZE_UNIT (field)))
{
rli->offset
= size_binop (PLUS_EXPR, rli->offset,