This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[commit] tweaks to opcode/cgen.h
- From: Doug Evans <dje at sebabeach dot org>
- To: binutils at sourceware dot org
- Date: Sun, 22 Nov 2009 19:57:27 -0800 (PST)
- Subject: [commit] tweaks to opcode/cgen.h
Hi.
fyi, I checked this in.
2009-11-22 Doug Evans <dje@sebabeach.org>
* cgen.h: Include bfd_stdint.h.
(CGEN_INSN_LGSINT, CGEN_INSN_LGUINT): New types.
Index: cgen.h
===================================================================
RCS file: /cvs/src/src/include/opcode/cgen.h,v
retrieving revision 1.24
diff -u -p -r1.24 cgen.h
--- cgen.h 24 Oct 2009 00:17:07 -0000 1.24
+++ cgen.h 23 Nov 2009 03:54:18 -0000
@@ -25,6 +25,9 @@ with this program; if not, write to the
#include "symcat.h"
#include "cgen/bitset.h"
+/* ??? IWBN to replace bfd in the name. */
+#include "bfd_stdint.h"
+
/* ??? This file requires bfd.h but only to get bfd_vma.
Seems like an awful lot to require just to get such a fundamental type.
Perhaps the definition of bfd_vma can be moved outside of bfd.h.
@@ -66,6 +69,9 @@ with this program; if not, write to the
when an array of characters the value is in target byte order. */
typedef unsigned int CGEN_INSN_INT;
+typedef int64_t CGEN_INSN_LGSINT; /* large/long SINT */
+typedef uint64_t CGEN_INSN_LGUINT; /* large/long UINT */
+
#if CGEN_INT_INSN_P
typedef CGEN_INSN_INT CGEN_INSN_BYTES;
typedef CGEN_INSN_INT *CGEN_INSN_BYTES_PTR;