Commit 67011d81 by Richard Kenner Committed by Richard Kenner

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
parent 23cb454a
Sat Dec 16 10:41:11 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> 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. * expmed.c (expand_mult): Write REG_EQUAL note with proper mode.
2000-12-16 Neil Booth <neil@daikokuya.demon.co.uk> 2000-12-16 Neil Booth <neil@daikokuya.demon.co.uk>
......
...@@ -893,7 +893,8 @@ place_field (rli, field) ...@@ -893,7 +893,8 @@ place_field (rli, field)
is printed in finish_struct. */ is printed in finish_struct. */
if (DECL_SIZE (field) == 0) if (DECL_SIZE (field) == 0)
/* Do nothing. */; /* 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 rli->offset
= size_binop (PLUS_EXPR, rli->offset, = size_binop (PLUS_EXPR, rli->offset,
......
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