diff options
author | Alan Modra <amodra@gmail.com> | 2022-05-10 08:52:07 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2022-05-11 09:49:20 +0930 |
commit | 0dfdb5234a22308c5d1e732652eeee7fa6f608c7 (patch) | |
tree | e03519059e02aa82fe8c587553b22f5127bd6cdc /opcodes/mep-dis.c | |
parent | 455f32e3c3d03defe735e1ac793aa66e7fc9f75f (diff) | |
download | fsf-binutils-gdb-0dfdb5234a22308c5d1e732652eeee7fa6f608c7.zip fsf-binutils-gdb-0dfdb5234a22308c5d1e732652eeee7fa6f608c7.tar.gz fsf-binutils-gdb-0dfdb5234a22308c5d1e732652eeee7fa6f608c7.tar.bz2 |
opcodes cgen: remove use of PTR
Note that opcodes is regenerated with cgen commit d1dd5fcc38e reverted,
due to failure of bpf to compile with that patch applied.
.../opcodes/bpf-opc.c:57:11: error: conversion from ‘long unsigned int’ to ‘unsigned int’ changes value from ‘18446744073709486335’ to ‘4294902015’ [-Werror=overflow]
57 | 64, 64, 0xffffffffffff00ff, { { F (F_IMM32) }, { F (F_OFFSET16) }, { F (F_SRCLE) }, { F (F_OP_CODE) }, { F (F_DSTLE) }, { F (F_OP_SRC) }, { F (F_OP_CLASS) }, { 0 } }
plus other similar errors.
cpu/
* mep.opc (print_tpreg, print_spreg): Delete unnecessary
forward declarations. Replace PTR with void *.
* mt.opc (print_dollarhex, print_pcrel): Delete forward decls.
opcodes/
* bpf-desc.c, * bpf-dis.c, * cris-desc.c,
* epiphany-desc.c, * epiphany-dis.c,
* fr30-desc.c, * fr30-dis.c, * frv-desc.c, * frv-dis.c,
* ip2k-desc.c, * ip2k-dis.c, * iq2000-desc.c, * iq2000-dis.c,
* lm32-desc.c, * lm32-dis.c, * m32c-desc.c, * m32c-dis.c,
* m32r-desc.c, * m32r-dis.c, * mep-desc.c, * mep-dis.c,
* mt-desc.c, * mt-dis.c, * or1k-desc.c, * or1k-dis.c,
* xc16x-desc.c, * xc16x-dis.c,
* xstormy16-desc.c, * xstormy16-dis.c: Regenerate.
Diffstat (limited to 'opcodes/mep-dis.c')
-rw-r--r-- | opcodes/mep-dis.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/opcodes/mep-dis.c b/opcodes/mep-dis.c index c56e90d..19751f4 100644 --- a/opcodes/mep-dis.c +++ b/opcodes/mep-dis.c @@ -65,11 +65,8 @@ static int read_insn #define CGEN_VALIDATE_INSN_SUPPORTED -static void print_tpreg (CGEN_CPU_DESC, PTR, CGEN_KEYWORD *, long, unsigned int); -static void print_spreg (CGEN_CPU_DESC, PTR, CGEN_KEYWORD *, long, unsigned int); - static void -print_tpreg (CGEN_CPU_DESC cd ATTRIBUTE_UNUSED, PTR dis_info, +print_tpreg (CGEN_CPU_DESC cd ATTRIBUTE_UNUSED, void *dis_info, CGEN_KEYWORD *table ATTRIBUTE_UNUSED, long val ATTRIBUTE_UNUSED, unsigned int flags ATTRIBUTE_UNUSED) { @@ -79,7 +76,7 @@ print_tpreg (CGEN_CPU_DESC cd ATTRIBUTE_UNUSED, PTR dis_info, } static void -print_spreg (CGEN_CPU_DESC cd ATTRIBUTE_UNUSED, PTR dis_info, +print_spreg (CGEN_CPU_DESC cd ATTRIBUTE_UNUSED, void *dis_info, CGEN_KEYWORD *table ATTRIBUTE_UNUSED, long val ATTRIBUTE_UNUSED, unsigned int flags ATTRIBUTE_UNUSED) { @@ -722,7 +719,7 @@ mep_print_insn (CGEN_CPU_DESC cd, bfd_vma pc, disassemble_info *info) /* -- opc.c */ void mep_cgen_print_operand - (CGEN_CPU_DESC, int, PTR, CGEN_FIELDS *, void const *, bfd_vma, int); + (CGEN_CPU_DESC, int, void *, CGEN_FIELDS *, void const *, bfd_vma, int); /* Main entry point for printing operands. XINFO is a `void *' and not a `disassemble_info *' to not put a requirement |