From c6412eeea9de28f1a7c69c1ea2dc5d736642648f Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Mon, 25 May 2020 19:37:54 -0700 Subject: [PATCH] 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]. --- gas/ChangeLog | 5 +++++ gas/config/tc-mcore.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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) { -- 2.30.2