Silence gcc-8 warnings
authorAlan Modra <amodra@gmail.com>
Mon, 23 Apr 2018 00:12:44 +0000 (09:42 +0930)
committerAlan Modra <amodra@gmail.com>
Mon, 23 Apr 2018 08:40:41 +0000 (18:10 +0930)
commit5a6312e8c015d4a98020038f3b6e144db230f3ca
treedfb7f8695c3388aad94dec6d7f60ce152c6ba338
parent5373441d20b652d5b0332b6cada74524af3ae707
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.
bfd/ChangeLog
bfd/elf-linux-core.h
bfd/elf.c
gas/ChangeLog
gas/config/tc-cr16.c
gas/config/tc-crx.c
gas/stabs.c