From d1a3c973fa1c0d7eead585e82e02db11daeb36cf Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Fri, 28 Dec 2018 09:31:42 +1030 Subject: PR24028, PPC_INT_FMT PPC_INT_FMT is redundant now that bfd.h pulls in inttypes.h if available. Apparently MacOS Mojave defines int64_t as long long even though long is also 64 bits, which confuses the logic selecting PPC_INT_FMT (and BFD_PRI64 too). Hopefully inttypes.h is available on Mojave. PR 24028 include/ * opcode/ppc.h (PPC_INT_FMT): Delete. opcodes/ * ppc-dis.c (print_insn_powerpc): Replace PPC_INT_FMT uses with PRId64/PRIx64. --- include/ChangeLog | 5 +++++ include/opcode/ppc.h | 8 -------- 2 files changed, 5 insertions(+), 8 deletions(-) (limited to 'include') diff --git a/include/ChangeLog b/include/ChangeLog index 5e6ed7e..53c423b 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,8 @@ +2018-12-28 Alan Modra + + PR 24028 + * opcode/ppc.h (PPC_INT_FMT): Delete. + 2018-12-14 H.J. Lu PR ld/23900 diff --git a/include/opcode/ppc.h b/include/opcode/ppc.h index c7262f1..c6b978e 100644 --- a/include/opcode/ppc.h +++ b/include/opcode/ppc.h @@ -30,14 +30,6 @@ extern "C" { typedef uint64_t ppc_cpu_t; -#if BFD_HOST_64BIT_LONG -# define PPC_INT_FMT "l" -#elif defined (__MSVCRT__) -# define PPC_INT_FMT "I64" -#else -# define PPC_INT_FMT "ll" -#endif - /* The opcode table is an array of struct powerpc_opcode. */ struct powerpc_opcode -- cgit v1.1