diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2020-05-26 06:09:54 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2020-05-26 06:12:37 -0700 |
commit | a05e3e203954fac0aacfcb647b1f8b52760e6df0 (patch) | |
tree | 253ae37f43ad7b4b708955e675a7151412d11c2a /gdb/sparc-linux-nat.c | |
parent | 40d22035a7fc239ac1e944b75a2e3ee9029d1b76 (diff) | |
download | binutils-a05e3e203954fac0aacfcb647b1f8b52760e6df0.zip binutils-a05e3e203954fac0aacfcb647b1f8b52760e6df0.tar.gz binutils-a05e3e203954fac0aacfcb647b1f8b52760e6df0.tar.bz2 |
tc-score.c: Replace overlapping sprintf with memmove
Fix GCC 10 warning:
gas/config/tc-score.c:4575:6: error: ‘sprintf’ argument 3 may overlap destination object ‘keep_data’ [-Werror=restrict]
4575 | sprintf (append_str, "bne %s", keep_data);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PR gas/26044
* onfig/tc-score.c (s3_do_macro_bcmp): Replace overlapping
sprintf with memmove.
Diffstat (limited to 'gdb/sparc-linux-nat.c')
0 files changed, 0 insertions, 0 deletions