From 5a6312e8c015d4a98020038f3b6e144db230f3ca Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Mon, 23 Apr 2018 09:42:44 +0930 Subject: Silence gcc-8 warnings All of these warnings were false positives. -Wstringop-truncation is particularly annoying when it warns about strncpy used quite correctly. bfd/ * elf-linux-core.h (swap_linux_prpsinfo32_ugid32_out): Disable gcc-8 string truncation warning. (swap_linux_prpsinfo32_ugid16_out): Likewise. (swap_linux_prpsinfo64_ugid32_out): Likewise. (swap_linux_prpsinfo64_ugid16_out): Likewise. * elf.c (elfcore_write_prpsinfo): Likewise. gas/ * stabs.c (generate_asm_file): Use memcpy rather than strncpy. Remove call to strlen inside loop. * config/tc-cr16.c (getreg_image): Warning fix. * config/tc-crx.c (getreg_image): Warning fix. --- gas/ChangeLog | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'gas/ChangeLog') diff --git a/gas/ChangeLog b/gas/ChangeLog index 21d09f8..ba3d8b5 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,10 @@ +2018-04-23 Alan Modra + + * stabs.c (generate_asm_file): Use memcpy rather than strncpy. + Remove call to strlen inside loop. + * config/tc-cr16.c (getreg_image): Warning fix. + * config/tc-crx.c (getreg_image): Warning fix. + 2018-04-20 Kito Cheng * config/tc-riscv.c (options): Add OPTION_RELAX and -- cgit v1.1