diff options
author | Martin Sebor <msebor@redhat.com> | 2016-09-28 16:02:06 +0000 |
---|---|---|
committer | Martin Sebor <msebor@gcc.gnu.org> | 2016-09-28 10:02:06 -0600 |
commit | c5a13998704d9dc8c5c9bf9467699a1af17ab0b4 (patch) | |
tree | 401b94f70bfacb78937c38deb9c0255c423772cb /gcc/varasm.c | |
parent | b23d063b5282827b499d22365b675544e55769da (diff) | |
download | gcc-c5a13998704d9dc8c5c9bf9467699a1af17ab0b4.zip gcc-c5a13998704d9dc8c5c9bf9467699a1af17ab0b4.tar.gz gcc-c5a13998704d9dc8c5c9bf9467699a1af17ab0b4.tar.bz2 |
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
Diffstat (limited to 'gcc/varasm.c')
-rw-r--r-- | gcc/varasm.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/varasm.c b/gcc/varasm.c index 3972790..93aba78 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", |