tc-score.c: Replace overlapping sprintf with memmove
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 26 May 2020 13:09:54 +0000 (06:09 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 26 May 2020 13:12:37 +0000 (06:12 -0700)
commita05e3e203954fac0aacfcb647b1f8b52760e6df0
tree253ae37f43ad7b4b708955e675a7151412d11c2a
parent40d22035a7fc239ac1e944b75a2e3ee9029d1b76
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.
gas/ChangeLog
gas/config/tc-score.c
This page took 0.023982 seconds and 4 git commands to generate.