diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-03-15 23:08:45 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-03-15 23:08:45 +0000 |
commit | 523f8924db2793abae1b981137b42da8b6c54878 (patch) | |
tree | 62cdbfebb9f20c4f9f716b12f81b8599e8ba96a4 | |
parent | 8143e06da84e323426594789673dbcc65a1eabee (diff) | |
download | gcc-523f8924db2793abae1b981137b42da8b6c54878.tar.gz |
Fix compiling large files
* 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
-rw-r--r-- | libcpp/ChangeLog | 4 | ||||
-rw-r--r-- | libcpp/line-map.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/libcpp/ChangeLog b/libcpp/ChangeLog index a2cb02f68a5..89b582d7540 100644 --- a/libcpp/ChangeLog +++ b/libcpp/ChangeLog @@ -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. diff --git a/libcpp/line-map.c b/libcpp/line-map.c index 1fb634af5bf..80d4e6b8392 100644 --- a/libcpp/line-map.c +++ b/libcpp/line-map.c @@ -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 |