This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug lto/71920] New: request to backport commit trunk@234239 to gcc 4.9 and 5
- From: "pageexec at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 18 Jul 2016 19:21:51 +0000
- Subject: [Bug lto/71920] New: request to backport commit trunk@234239 to gcc 4.9 and 5
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71920
Bug ID: 71920
Summary: request to backport commit trunk@234239 to gcc 4.9 and
5
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: lto
Assignee: unassigned at gcc dot gnu.org
Reporter: pageexec at gmail dot com
Target Milestone: ---
i encountered a crash while building recent linux kernels (v4.5+) in LTO mode.
when i tracked down the root cause it turned out that the underlying bug had
already been fixed by the following commit on trunk (and gcc 6) therefore i'd
like to request that it be backported to the still maintained branches.
commit 523f8924db2793abae1b981137b42da8b6c54878
Author: rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Date: Tue Mar 15 23:08:45 2016 +0000
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
diff --git a/libcpp/ChangeLog b/libcpp/ChangeLog
index a2cb02f68a56..89b582d75402 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 1fb634af5bf3..80d4e6b83921 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