aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Kenner <kenner@vlsi1.ultra.nyu.edu>2003-04-30 20:30:37 +0000
committerRichard Kenner <kenner@gcc.gnu.org>2003-04-30 16:30:37 -0400
commit5826955dbbc8a21f29e3248db0791107d3b41c1d (patch)
tree6a5c56b50e98567b93dc9dee7c2adafd2b4673c0
parentfba020b13418f091ecf6c673bf8faa5baf047f02 (diff)
downloadgcc-5826955dbbc8a21f29e3248db0791107d3b41c1d.zip
gcc-5826955dbbc8a21f29e3248db0791107d3b41c1d.tar.gz
gcc-5826955dbbc8a21f29e3248db0791107d3b41c1d.tar.bz2
* stor-layout.c (mode_for_size_tree): Use BLKmode if SIZE overflows.
From-SVN: r66305
-rw-r--r--gcc/ChangeLog2
-rw-r--r--gcc/stor-layout.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index b67d15b..acfb3c9 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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>
diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c
index 0df34bd..7513eda 100644
--- a/gcc/stor-layout.c
+++ b/gcc/stor-layout.c
@@ -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. */