* stor-layout.c (mode_for_size_tree): Use BLKmode if SIZE overflows.
authorRichard Kenner <kenner@vlsi1.ultra.nyu.edu>
Wed, 30 Apr 2003 20:30:37 +0000 (20:30 +0000)
committerRichard Kenner <kenner@gcc.gnu.org>
Wed, 30 Apr 2003 20:30:37 +0000 (16:30 -0400)
From-SVN: r66305

gcc/ChangeLog
gcc/stor-layout.c

index b67d15b5ae112f6b7663dff33ec329e23054f058..acfb3c99c7a9dc99f704b1d6021c47056ac717fe 100644 (file)
@@ -37,6 +37,8 @@
 
 2003-04-30  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
 
+       * stor-layout.c (mode_for_size_tree): Use BLKmode if SIZE overflows.
+
        * doc/install.texi (--enable-threads): Document "gnat" option.
 
 2003-04-30  Gabriel Dos Reis <gdr@integrable-solutions.net>
index 0df34bd5a437dcd18c05ed0a4ea7cda43ba2e6dc..7513eda00ae7fb0a70400f95aa3954e8dd49fe9d 100644 (file)
@@ -243,6 +243,7 @@ mode_for_size_tree (size, class, limit)
      int limit;
 {
   if (TREE_CODE (size) != INTEGER_CST
+      || TREE_OVERFLOW (size)
       /* What we really want to say here is that the size can fit in a
         host integer, but we know there's no way we'd find a mode for
         this many bits, so there's no point in doing the precise test.  */