re PR middle-end/53510 (OOM while compile some code)
authorJakub Jelinek <jakub@redhat.com>
Tue, 29 May 2012 11:34:38 +0000 (13:34 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 29 May 2012 11:34:38 +0000 (13:34 +0200)
commit92b05e72eab38351ab9a486e0e0ec9db11f4413b
treec2b60359132356dcde0e153b19936cc26691c1d9
parent4f7f7aca357246cb38a1a4f9e1177f5adfd3f25e
re PR middle-end/53510 (OOM while compile some code)

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.

From-SVN: r187952
gcc/ChangeLog
gcc/gcov.c
gcc/input.c