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

gcc/ChangeLog
libcpp/line-map.c

index e3e394ea4a7d85e79e9cdb31cc8be400dc62521b..fd6aaafb007c847c4acb6b776615ca07f56da9f8 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 78c43933d836bb6782228c2b73417d641d12bb0d..873f80327a0e4d61b902bbc7baab4f0febddb778 100644 (file)
@@ -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