This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]