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:
Martin Liska 2016-07-19 15:35:43 +02:00 committed by Martin Liska
parent 966f872069
commit cc441bd93f
2 changed files with 8 additions and 1 deletions

View File

@ -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>
Backported from mainline

View File

@ -218,7 +218,7 @@ new_linemap (struct line_maps *set,
if (LINEMAPS_USED (set, macro_map_p) == LINEMAPS_ALLOCATED (set, macro_map_p))
{
/* 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. */
line_map_realloc reallocator = (set->reallocator