From: H.J. Lu Date: Tue, 26 May 2020 14:54:05 +0000 (-0700) Subject: gas: Silence GCC 10 warning on tc-visium.c X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8bbc5da5ee827bd9c962d238777e20db2c100598;p=binutils-gdb.git gas: Silence GCC 10 warning on tc-visium.c PR gas/26044 * config/tc-visium.c (md_convert_frag): Replace fragP->fr_literal with &fragP->fr_literal[0]. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 980a84f6cf7..55e8ac03656 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,9 @@ +2020-05-26 H.J. Lu + + PR gas/26044 + * config/tc-visium.c (md_convert_frag): Replace fragP->fr_literal + with &fragP->fr_literal[0]. + 2020-05-26 H.J. Lu PR gas/26044 diff --git a/gas/config/tc-visium.c b/gas/config/tc-visium.c index fc6a41d9a4d..3e48c7aefc8 100644 --- a/gas/config/tc-visium.c +++ b/gas/config/tc-visium.c @@ -484,7 +484,7 @@ void md_convert_frag (bfd * abfd ATTRIBUTE_UNUSED, segT sec ATTRIBUTE_UNUSED, fragS * fragP) { - char *buf = fragP->fr_literal + fragP->fr_fix; + char *buf = &fragP->fr_literal[0] + fragP->fr_fix; expressionS exp; fixS *fixP;