This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Return BLKmode in mode_for_size_tree if SIZE overflows
- From: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 30 Apr 03 16:36:30 EDT
- Subject: Return BLKmode in mode_for_size_tree if SIZE overflows
This fixes the Ada bootstrap problem reported recently by Laurent.
2003-04-30 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* stor-layout.c (mode_for_size_tree): Use BLKmode if SIZE overflows.
*** gcc/stor-layout.c 29 Apr 2003 22:48:55 -0000 1.153
--- gcc/stor-layout.c 30 Apr 2003 20:28:49 -0000
*************** mode_for_size_tree (size, class, limit)
*** 244,247 ****
--- 244,248 ----
{
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