From a05e3e203954fac0aacfcb647b1f8b52760e6df0 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Tue, 26 May 2020 06:09:54 -0700 Subject: tc-score.c: Replace overlapping sprintf with memmove MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'gas/ChangeLog') diff --git a/gas/ChangeLog b/gas/ChangeLog index 7264c8a..291a357 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,9 @@ +2020-05-26 H.J. Lu + + PR gas/26044 + * onfig/tc-score.c (s3_do_macro_bcmp): Replace overlapping + sprintf with memmove. + 2020-05-25 H.J. Lu * config/tc-mcore.c (md_convert_frag): Replace fragP->fr_literal -- cgit v1.1