]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix compiling large files
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 15 Mar 2016 23:08:45 +0000 (23:08 +0000)
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 15 Mar 2016 23:08:45 +0000 (23:08 +0000)
  * line-map.c (new_linemap): Make alloc_size a size_t.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234239 138bc75d-0d04-0410-961f-82ee72b054a4

libcpp/ChangeLog
libcpp/line-map.c

index a2cb02f68a5623bba48d2f8990ae7af2911e8900..89b582d75402a789f640f36f64e6aa99f6af6b50 100644 (file)
@@ -1,3 +1,7 @@
+2016-03-15  Richard Henderson  <rth@redhat.com>
+
+       * line-map.c (new_linemap): Make alloc_size a size_t.
+
 2016-03-14  Jason Merrill  <jason@redhat.com>
 
        * expr.c (cpp_classify_number): Hex floats are new in C++1z.
index 1fb634af5bf3d1805a9c2f7c6264ee686c847e9a..80d4e6b839216854db7ba6b7e47ecdbdf4f8ae57 100644 (file)
@@ -376,7 +376,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