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]

Fix alloca handling of very large datastructures


Hi,
another bug...
Bootstrapped/regtested x86_64-linux, will commit it as obvious.

2003-11-30  Jan Hubicka  <jh@suse.cz>
	* explow.c (round_push): Fix handling of large sizes.
Index: explow.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/explow.c,v
retrieving revision 1.104.2.1
diff -c -3 -p -r1.104.2.1 explow.c
*** explow.c	11 Apr 2003 22:56:05 -0000	1.104.2.1
--- explow.c	29 Nov 2003 21:34:16 -0000
*************** round_push (size)
*** 947,953 ****
      return size;
    if (GET_CODE (size) == CONST_INT)
      {
!       int new = (INTVAL (size) + align - 1) / align * align;
        if (INTVAL (size) != new)
  	size = GEN_INT (new);
      }
--- 947,953 ----
      return size;
    if (GET_CODE (size) == CONST_INT)
      {
!       HOST_WIDE_INT new = (INTVAL (size) + align - 1) / align * align;
        if (INTVAL (size) != new)
  	size = GEN_INT (new);
      }


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