From c5a13998704d9dc8c5c9bf9467699a1af17ab0b4 Mon Sep 17 00:00:00 2001 From: Martin Sebor Date: Wed, 28 Sep 2016 16:02:06 +0000 Subject: [PATCH] PR bootstrap/77753 - [7 Regression] broken profiledbootstrap due to gcc/ChangeLog: PR bootstrap/77753 * varasm.c (assemble_addr_to_section): Increase local buffer size. From-SVN: r240581 --- gcc/ChangeLog | 5 +++++ gcc/varasm.c | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3c708605b6c..3a1e67645e4 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2016-09-28 Martin Sebor + + PR bootstrap/77753 + * varasm.c (assemble_addr_to_section): Increase local buffer size. + 2016-09-27 Richard Biener * dwarf2out.c (cu_die_list): New global. diff --git a/gcc/varasm.c b/gcc/varasm.c index 3972790cc7b..93aba78e4b5 100644 --- a/gcc/varasm.c +++ b/gcc/varasm.c @@ -1556,7 +1556,9 @@ assemble_addr_to_section (rtx symbol, section *sec) section * get_cdtor_priority_section (int priority, bool constructor_p) { - char buf[16]; + /* Buffer conservatively large enough for the full range of a 32-bit + int plus the text below. */ + char buf[18]; /* ??? This only works reliably with the GNU linker. */ sprintf (buf, "%s.%.5u", -- 2.30.2