From: Martin Liska Date: Tue, 19 Jul 2016 13:35:43 +0000 (+0200) Subject: Fix compiling large files X-Git-Tag: releases/gcc-5.5.0~959 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cc441bd93f4d2ce760ca1f27e80ac7f7f9b203a3;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: r238474 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d2412cec4537..0583355b788c 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 f9260d000089..340eabac7fc3 100644 --- a/libcpp/line-map.c +++ b/libcpp/line-map.c @@ -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