aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMartin Sebor <msebor@redhat.com>2017-01-09 20:08:49 +0000
committerMartin Sebor <msebor@gcc.gnu.org>2017-01-09 13:08:49 -0700
commit47d5beb478d39937b8068410101241ae806adc25 (patch)
tree19359af05b63cf35a928214406ab66954808f23f /gcc
parent2193ad7fbf3e917a0ef5a2b48e13f84da1be44f1 (diff)
downloadgcc-47d5beb478d39937b8068410101241ae806adc25.zip
gcc-47d5beb478d39937b8068410101241ae806adc25.tar.gz
gcc-47d5beb478d39937b8068410101241ae806adc25.tar.bz2
PR bootstrap/79033 - asan.c not compiling with make BOOT_CFLAGS=-O0
gcc/ChangeLog: * asan.c (asan_emit_stack_protection): Increase local buffer size to avoid snprintf truncation warning. From-SVN: r244237
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/asan.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 63ca675..56de1fb 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2017-01-09 Martin Sebor <msebor@redhat.com>
+
+ PR bootstrap/79033
+ * asan.c (asan_emit_stack_protection): Increase local buffer size
+ to avoid snprintf truncation warning.
+
2017-01-09 Andrew Pinski <apinski@cavium.com>
* config/aarch64/aarch64-cores.def: Add thunderx2t99. Change vulcan
diff --git a/gcc/asan.c b/gcc/asan.c
index 5f48875..bc7ebc8 100644
--- a/gcc/asan.c
+++ b/gcc/asan.c
@@ -1068,7 +1068,7 @@ asan_emit_stack_protection (rtx base, rtx pbase, unsigned int alignb,
rtx shadow_base, shadow_mem, ret, mem, orig_base;
rtx_code_label *lab;
rtx_insn *insns;
- char buf[30];
+ char buf[32];
unsigned char shadow_bytes[4];
HOST_WIDE_INT base_offset = offsets[length - 1];
HOST_WIDE_INT base_align_bias = 0, offset, prev_offset;