This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/53510] [4.8 Regression] OOM while compile some code
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 29 May 2012 11:34:42 +0000
- Subject: [Bug middle-end/53510] [4.8 Regression] OOM while compile some code
- Auto-submitted: auto-generated
- References: <bug-53510-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53510
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-05-29 11:34:42 UTC ---
Author: jakub
Date: Tue May 29 11:34:38 2012
New Revision: 187952
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=187952
Log:
PR middle-end/53510
* input.c (read_line): Use XRESIZEVEC instead of XNEWVEC
to avoid leaking memory. No need to handle memory allocation
failure. Double string_len on each reallocation instead of
adding 2.
* gcov.c (read_line): Likewise.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/gcov.c
trunk/gcc/input.c