mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-27 03:54:41 +08:00
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:
parent
9fcc34577e
commit
c6412eeea9
@ -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
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user