diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2020-05-26 07:54:05 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2020-05-26 07:54:05 -0700 |
commit | 8bbc5da5ee827bd9c962d238777e20db2c100598 (patch) | |
tree | 0b69de5b2915e181c865aa221c86acdea9f31ac3 /gas | |
parent | c4612b92e38e9495970afc703f222f99d27c1b4d (diff) | |
download | gdb-8bbc5da5ee827bd9c962d238777e20db2c100598.zip gdb-8bbc5da5ee827bd9c962d238777e20db2c100598.tar.gz gdb-8bbc5da5ee827bd9c962d238777e20db2c100598.tar.bz2 |
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].
Diffstat (limited to 'gas')
-rw-r--r-- | gas/ChangeLog | 6 | ||||
-rw-r--r-- | gas/config/tc-visium.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index 980a84f..55e8ac0 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,6 +1,12 @@ 2020-05-26 H.J. Lu <hongjiu.lu@intel.com> 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 <hongjiu.lu@intel.com> + + PR gas/26044 * config/tc-vax.c (md_estimate_size_before_relax): Replace fragP->fr_literal with &fragP->fr_literal[0]. (md_convert_frag): Likewise. diff --git a/gas/config/tc-visium.c b/gas/config/tc-visium.c index fc6a41d..3e48c7a 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; |