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
This commit is contained in:
Martin Sebor 2017-01-09 20:08:49 +00:00 committed by Martin Sebor
parent 2193ad7fbf
commit 47d5beb478
2 changed files with 7 additions and 1 deletions

View File

@ -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

View File

@ -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;