[PATCH] gas: Silence GCC 10 warning on tc-cr16.c
H.J. Lu
hjl.tools@gmail.com
Mon May 25 23:22:17 GMT 2020
More information about the Binutils mailing list
Mon May 25 23:22:17 GMT 2020
- Previous message (by thread): [PATCH] ELF: Updated comments for ET_EXEC and ET_DYN
- Next message (by thread): [PATCH] tc-cr16.c: Use memmove to concatenate 2 overlapping strings
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
* config/tc-cr16.c (md_convert_frag): Replace fragP->fr_literal with &fragP->fr_literal[0]. --- gas/ChangeLog | 5 +++++ gas/config/tc-cr16.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index 1b0ec36dec..96c78092a0 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -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 diff --git a/gas/config/tc-cr16.c b/gas/config/tc-cr16.c index 7a8f33b889..901838398e 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); -- 2.26.2
- Previous message (by thread): [PATCH] ELF: Updated comments for ET_EXEC and ET_DYN
- Next message (by thread): [PATCH] tc-cr16.c: Use memmove to concatenate 2 overlapping strings
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Binutils mailing list