diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2020-05-26 06:46:26 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2020-05-26 06:53:36 -0700 |
commit | e67e940f5d9102fb452b87aca441a2829a67d66b (patch) | |
tree | 20eb98b59087da5bc459895645e73d2a4e822a51 /gdb/sparc-linux-nat.c | |
parent | 9e7cb4c359e6a86550bca296db617fb4c8068c1a (diff) | |
download | binutils-e67e940f5d9102fb452b87aca441a2829a67d66b.zip binutils-e67e940f5d9102fb452b87aca441a2829a67d66b.tar.gz binutils-e67e940f5d9102fb452b87aca441a2829a67d66b.tar.bz2 |
gas: Silence GCC 10 warning on tc-crx.c
opcode/crx.h has
typedef enum
{
...
MAX_REG
}
reg;
typedef enum
{
c0 = MAX_REG,
}
copreg;
tc-crx.c has
static int
getreg_image (reg r)
{
...
/* Check whether the register is in registers table. */
if (r < MAX_REG)
rreg = &crx_regtab[r];
/* Check whether the register is in coprocessor registers table. */
else if (r < (int) MAX_COPREG)
rreg = &crx_copregtab[r-MAX_REG];
}
Change getreg_image's argument type to int and replace fragP->fr_literal
with &fragP->fr_literal[0] to silence GCC 10 warning.
PR gas/26044
* config/tc-crx.c (getreg_image): Change argument type to int.
(md_convert_frag): Replace fragP->fr_literal with
&fragP->fr_literal[0].
Diffstat (limited to 'gdb/sparc-linux-nat.c')
0 files changed, 0 insertions, 0 deletions