From 47d5beb478d39937b8068410101241ae806adc25 Mon Sep 17 00:00:00 2001 From: Martin Sebor Date: Mon, 9 Jan 2017 20:08:49 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 6 ++++++ gcc/asan.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 63ca675d201..56de1fba6e3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2017-01-09 Martin Sebor + + PR bootstrap/79033 + * asan.c (asan_emit_stack_protection): Increase local buffer size + to avoid snprintf truncation warning. + 2017-01-09 Andrew Pinski * config/aarch64/aarch64-cores.def: Add thunderx2t99. Change vulcan diff --git a/gcc/asan.c b/gcc/asan.c index 5f48875a3c0..bc7ebc8f28a 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; -- 2.30.2