From 8bbc5da5ee827bd9c962d238777e20db2c100598 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Tue, 26 May 2020 07:54:05 -0700 Subject: [PATCH] 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]. --- gas/ChangeLog | 6 ++++++ gas/config/tc-visium.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) 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; -- 2.30.2