diff options
author | Martin Sebor <msebor@redhat.com> | 2017-01-09 20:08:49 +0000 |
---|---|---|
committer | Martin Sebor <msebor@gcc.gnu.org> | 2017-01-09 13:08:49 -0700 |
commit | 47d5beb478d39937b8068410101241ae806adc25 (patch) | |
tree | 19359af05b63cf35a928214406ab66954808f23f /gcc | |
parent | 2193ad7fbf3e917a0ef5a2b48e13f84da1be44f1 (diff) | |
download | gcc-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/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/asan.c | 2 |
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 @@ -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; |