gas: Silence GCC 10 warning on tc-mcore.c
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 26 May 2020 02:37:54 +0000 (19:37 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 26 May 2020 02:39:13 +0000 (19:39 -0700)
* config/tc-mcore.c (md_convert_frag): Replace fragP->fr_literal
with &fragP->fr_literal[0].

gas/ChangeLog
gas/config/tc-mcore.c

index 7aba149af9c656dcde9f6ab5f9256a4ead3fbcb6..7264c8a0619fc41711971f55b77d1e46b7832379 100644 (file)
@@ -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
index b849a7c90f3d9db959c49579a2985600cd65e55e..da58e7b4c447bc7ea02a1fdceafe078d76fb3bc7 100644 (file)
@@ -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)
     {