(layout_record): Treat constant size as variable if it overflows.
authorRichard Kenner <kenner@gcc.gnu.org>
Thu, 7 Nov 1996 12:39:55 +0000 (07:39 -0500)
committerRichard Kenner <kenner@gcc.gnu.org>
Thu, 7 Nov 1996 12:39:55 +0000 (07:39 -0500)
From-SVN: r13105

gcc/stor-layout.c

index 61768f842639212ce322084afe54ba3199cdf426..b0b64d2d0cd858db34792efeac6b250f187f21cb 100644 (file)
@@ -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.  */