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 /gas/ChangeLog | |
parent | 40d22035a7fc239ac1e944b75a2e3ee9029d1b76 (diff) | |
download | gdb-a05e3e203954fac0aacfcb647b1f8b52760e6df0.zip gdb-a05e3e203954fac0aacfcb647b1f8b52760e6df0.tar.gz gdb-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 'gas/ChangeLog')
-rw-r--r-- | gas/ChangeLog | 6 |
1 files changed, 6 insertions, 0 deletions
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 <hongjiu.lu@intel.com> + + PR gas/26044 + * onfig/tc-score.c (s3_do_macro_bcmp): Replace overlapping + sprintf with memmove. + 2020-05-25 H.J. Lu <hongjiu.lu@intel.com> * config/tc-mcore.c (md_convert_frag): Replace fragP->fr_literal |