mirror of git://gcc.gnu.org/git/gcc.git
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:
parent
23cb454af9
commit
67011d8196
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue