From: H.J. Lu Date: Tue, 26 May 2020 02:37:54 +0000 (-0700) Subject: gas: Silence GCC 10 warning on tc-mcore.c X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c6412eeea9de28f1a7c69c1ea2dc5d736642648f;p=binutils-gdb.git 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]. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 7aba149af9c..7264c8a0619 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2020-05-25 H.J. Lu + + * config/tc-mcore.c (md_convert_frag): Replace fragP->fr_literal + with &fragP->fr_literal[0]. + 2020-05-25 H.J. Lu PR gas/26041 diff --git a/gas/config/tc-mcore.c b/gas/config/tc-mcore.c index b849a7c90f3..da58e7b4c44 100644 --- a/gas/config/tc-mcore.c +++ b/gas/config/tc-mcore.c @@ -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) {