gas: Silence GCC 10 warning on tc-mcore.c

* config/tc-mcore.c (md_convert_frag): Replace fragP->fr_literal
	with &fragP->fr_literal[0].
This commit is contained in:
H.J. Lu 2020-05-25 19:37:54 -07:00
parent 9fcc34577e
commit c6412eeea9
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2020-05-25 H.J. Lu <hongjiu.lu@intel.com>
* config/tc-mcore.c (md_convert_frag): Replace fragP->fr_literal
with &fragP->fr_literal[0].
2020-05-25 H.J. Lu <hongjiu.lu@intel.com>
PR gas/26041

View File

@ -1725,7 +1725,7 @@ md_convert_frag (bfd * abfd ATTRIBUTE_UNUSED,
char *buffer;
int targ_addr = S_GET_VALUE (fragP->fr_symbol) + fragP->fr_offset;
buffer = fragP->fr_fix + fragP->fr_literal;
buffer = fragP->fr_fix + &fragP->fr_literal[0];
switch (fragP->fr_subtype)
{