From: Richard Kenner Date: Thu, 7 Nov 1996 12:39:55 +0000 (-0500) Subject: (layout_record): Treat constant size as variable if it overflows. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1d58084ae01fd2f03fb2126ae5fcfaa3865fa701;p=gcc.git (layout_record): Treat constant size as variable if it overflows. From-SVN: r13105 --- diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c index 61768f84263..b0b64d2d0cd 100644 --- a/gcc/stor-layout.c +++ b/gcc/stor-layout.c @@ -507,6 +507,7 @@ layout_record (rec) if (dsize == 0) /* Do nothing. */; else if (TREE_CODE (dsize) == INTEGER_CST + && ! TREE_CONSTANT_OVERFLOW (dsize) && TREE_INT_CST_HIGH (dsize) == 0 && TREE_INT_CST_LOW (dsize) + const_size >= const_size) /* Use const_size if there's no overflow. */