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]

Re: Fix dealing with large (>2GB) static data initalizers


Oops, forgot the patch

Mon May 12 21:14:47 CEST 2003  Jan Hubicka  <jh@suse.cz>
	* varasm.c (output_constant):  Fix underflow.
Index: varasm.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/varasm.c,v
retrieving revision 1.352
diff -c -3 -p -r1.352 varasm.c
*** varasm.c	12 May 2003 09:51:17 -0000	1.352
--- varasm.c	12 May 2003 19:14:41 -0000
*************** output_constant (exp, size, align)
*** 3913,3921 ****
        abort ();
      }
  
!   size -= thissize;
!   if (size > 0)
!     assemble_zeros (size);
  }
  
  
--- 3913,3920 ----
        abort ();
      }
  
!   if (size > thissize)
!     assemble_zeros (size - thissize);
  }
  
  


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