aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2018-12-28 09:31:42 +1030
committerAlan Modra <amodra@gmail.com>2018-12-28 15:02:04 +1030
commitd1a3c973fa1c0d7eead585e82e02db11daeb36cf (patch)
tree4a9522687e2fc7283bc82b273b3ed136698c4c69 /include
parentb6d3efdc59c84f418e2d7e1a1dfbc5ff33f44ae5 (diff)
downloadgdb-d1a3c973fa1c0d7eead585e82e02db11daeb36cf.zip
gdb-d1a3c973fa1c0d7eead585e82e02db11daeb36cf.tar.gz
gdb-d1a3c973fa1c0d7eead585e82e02db11daeb36cf.tar.bz2
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.
Diffstat (limited to 'include')
-rw-r--r--include/ChangeLog5
-rw-r--r--include/opcode/ppc.h8
2 files changed, 5 insertions, 8 deletions
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 <amodra@gmail.com>
+
+ PR 24028
+ * opcode/ppc.h (PPC_INT_FMT): Delete.
+
2018-12-14 H.J. Lu <hongjiu.lu@intel.com>
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