mirror of git://gcc.gnu.org/git/gcc.git
Fix compiling large files
Backported from mainline 2016-03-15 Richard Henderson <rth@redhat.com> * line-map.c (new_linemap): Make alloc_size a size_t. From-SVN: r238474
This commit is contained in:
parent
966f872069
commit
cc441bd93f
|
|
@ -1,3 +1,10 @@
|
||||||
|
2016-07-19 Martin Liska <mliska@suse.cz>
|
||||||
|
|
||||||
|
Backported from mainline
|
||||||
|
2016-03-15 Richard Henderson <rth@redhat.com>
|
||||||
|
|
||||||
|
* line-map.c (new_linemap): Make alloc_size a size_t.
|
||||||
|
|
||||||
2016-07-19 Jakub Jelinek <jakub@redhat.com>
|
2016-07-19 Jakub Jelinek <jakub@redhat.com>
|
||||||
|
|
||||||
Backported from mainline
|
Backported from mainline
|
||||||
|
|
|
||||||
|
|
@ -218,7 +218,7 @@ new_linemap (struct line_maps *set,
|
||||||
if (LINEMAPS_USED (set, macro_map_p) == LINEMAPS_ALLOCATED (set, macro_map_p))
|
if (LINEMAPS_USED (set, macro_map_p) == LINEMAPS_ALLOCATED (set, macro_map_p))
|
||||||
{
|
{
|
||||||
/* We ran out of allocated line maps. Let's allocate more. */
|
/* We ran out of allocated line maps. Let's allocate more. */
|
||||||
unsigned alloc_size;
|
size_t alloc_size;
|
||||||
|
|
||||||
/* Cast away extern "C" from the type of xrealloc. */
|
/* Cast away extern "C" from the type of xrealloc. */
|
||||||
line_map_realloc reallocator = (set->reallocator
|
line_map_realloc reallocator = (set->reallocator
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue