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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user