From: Martin Liska Date: Tue, 19 Jul 2016 13:32:36 +0000 (+0200) Subject: Fix compiling large files X-Git-Tag: releases/gcc-4.9.4~64 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6cf7c5c69862f47ed11c020f7a12cbd2b72928e4;p=thirdparty%2Fgcc.git Fix compiling large files Backported from mainline 2016-03-15 Richard Henderson * line-map.c (new_linemap): Make alloc_size a size_t. From-SVN: r238473 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e3e394ea4a7d..fd6aaafb007c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2016-07-19 Martin Liska + + Backported from mainline + 2016-03-15 Richard Henderson + + * line-map.c (new_linemap): Make alloc_size a size_t. + 2016-07-19 Jakub Jelinek Backported from mainline diff --git a/libcpp/line-map.c b/libcpp/line-map.c index 78c43933d836..873f80327a0e 100644 --- a/libcpp/line-map.c +++ b/libcpp/line-map.c @@ -216,7 +216,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