https://sourceware.org/bugzilla/show_bug.cgi?id=26044
--- Comment #6 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by H.J. Lu <h...@sourceware.org>: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=e67e940f5d9102fb452b87aca441a2829a67d66b commit e67e940f5d9102fb452b87aca441a2829a67d66b Author: H.J. Lu <hjl.to...@gmail.com> Date: Tue May 26 06:46:26 2020 -0700 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]. -- You are receiving this mail because: You are on the CC list for the bug.