tc-xgate.c: Replace R_XGATE_PCREL_X with BFD_RELOC_XGATE_PCREL_X
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 26 May 2020 16:33:48 +0000 (09:33 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 26 May 2020 16:34:18 +0000 (09:34 -0700)
commite3fed0f2fe98c52dc8cb160be2a30e973b1dca3f
treea72826e2c97f6e83b8f84bbcf01f2aa3f87fa1dc
parentf687f5f563a6407f74a6f3aacb00f07b1889470b
tc-xgate.c: Replace R_XGATE_PCREL_X with BFD_RELOC_XGATE_PCREL_X

Replace R_XGATE_PCREL_X with BFD_RELOC_XGATE_PCREL_X to silence GCC 10
warning:

gas/config/tc-xgate.c:1339:5: error: implicit conversion from ‘enum elf_xgate_reloc_type’ to ‘bfd_reloc_code_real_type’ {aka ‘enum bfd_reloc_code_real’} [-Werror=enum-conversion]
 1339 |     R_XGATE_PCREL_9);
      |     ^~~~~~~~~~~~~~~

PR gas/26044
* config/tc-xgate.c (md_apply_fix): Check BFD_RELOC_XGATE_PCREL_X
instead of R_XGATE_PCREL_X.
(xgate_parse_operand): Replace R_XGATE_PCREL_X with
BFD_RELOC_XGATE_PCREL_X.
gas/ChangeLog
gas/config/tc-xgate.c