mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-15 04:31:49 +08:00
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].
This commit is contained in:
parent
68dc60e6a7
commit
6c115e16ca
@ -1,3 +1,8 @@
|
||||
2020-05-25 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
* config/tc-cr16.c (md_convert_frag): Replace fragP->fr_literal
|
||||
with &fragP->fr_literal[0].
|
||||
|
||||
2020-05-25 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
* config/tc-csky.c (md_convert_frag): Replace fragp->fr_literal
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user