]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix compiling large files
authorMartin Liska <mliska@suse.cz>
Tue, 19 Jul 2016 13:35:43 +0000 (15:35 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Tue, 19 Jul 2016 13:35:43 +0000 (13:35 +0000)
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

gcc/ChangeLog
libcpp/line-map.c

index d2412cec453724fe266cbae0099551a6a70c8197..0583355b788c53c313ca06fbf52e8a5bd2e0c858 100644 (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
index f9260d00008988a5b5f6b23e03f8f9abd61edd16..340eabac7fc33c100e5c101aaa2c90532e07ab4a 100644 (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