aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2020-05-25 19:37:54 -0700
committerH.J. Lu <hjl.tools@gmail.com>2020-05-25 19:39:13 -0700
commitc6412eeea9de28f1a7c69c1ea2dc5d736642648f (patch)
tree8a340c5ecf2b04aadc38ef2f22e6a8a83b0f05cd /gas
parent9fcc34577ed663db6143053cd0bf0c271bb6a3e2 (diff)
downloadgdb-c6412eeea9de28f1a7c69c1ea2dc5d736642648f.zip
gdb-c6412eeea9de28f1a7c69c1ea2dc5d736642648f.tar.gz
gdb-c6412eeea9de28f1a7c69c1ea2dc5d736642648f.tar.bz2
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].
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/tc-mcore.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 7aba149..7264c8a 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,5 +1,10 @@
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
* config/tc-cr16.c (md_assemble): Use memmove to concatenate
2 overlapping strings.
diff --git a/gas/config/tc-mcore.c b/gas/config/tc-mcore.c
index b849a7c..da58e7b 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)
{