diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2020-05-25 16:17:50 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2020-05-25 16:19:49 -0700 |
commit | 6c115e16cadbca943396df6078b1c596fec49b73 (patch) | |
tree | fe4368d534af77167048f3ff758f78bfaaf93283 /gas/config | |
parent | 68dc60e6a7cf8924a97a23d3c8a73703c2ff79d5 (diff) | |
download | gdb-6c115e16cadbca943396df6078b1c596fec49b73.zip gdb-6c115e16cadbca943396df6078b1c596fec49b73.tar.gz gdb-6c115e16cadbca943396df6078b1c596fec49b73.tar.bz2 |
gas: Silence GCC 10 warning on tc-cr16.c
* config/tc-cr16.c (md_convert_frag): Replace fragP->fr_literal
with &fragP->fr_literal[0].
Diffstat (limited to 'gas/config')
-rw-r--r-- | gas/config/tc-cr16.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gas/config/tc-cr16.c b/gas/config/tc-cr16.c index 7a8f33b..9018383 100644 --- a/gas/config/tc-cr16.c +++ b/gas/config/tc-cr16.c @@ -642,7 +642,7 @@ md_convert_frag (bfd *abfd ATTRIBUTE_UNUSED, asection *sec, fragS *fragP) { /* 'opcode' points to the start of the instruction, whether we need to change the instruction's fixed encoding. */ - char *opcode = fragP->fr_literal + fragP->fr_fix; + char *opcode = &fragP->fr_literal[0] + fragP->fr_fix; bfd_reloc_code_real_type reloc; subseg_change (sec, 0); |