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]

reload1.c patch for large frame sizes


This fixes a bug on ia64-linux where a program with over 2GB of data in the
frame hits the old_frame_size != get_frame_size () abort because the
frame size value was accidentally truncated to an int.

2000-11-27  Jim Wilson  <wilson@redhat.com>

	* reload1.c (reload): Use HOST_WIDE_INT for old_frame_size.

Index: reload1.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/reload1.c,v
retrieving revision 1.241
diff -p -r1.241 reload1.c
*** reload1.c	2000/11/14 10:23:37	1.241
--- reload1.c	2000/11/28 03:12:10
*************** reload (first, global)
*** 1014,1020 ****
    if (insns_need_reload != 0 || something_needs_elimination
        || something_needs_operands_changed)
      {
!       int old_frame_size = get_frame_size ();
  
        reload_as_needed (global);
  
--- 1014,1020 ----
    if (insns_need_reload != 0 || something_needs_elimination
        || something_needs_operands_changed)
      {
!       HOST_WIDE_INT old_frame_size = get_frame_size ();
  
        reload_as_needed (global);
  

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