+2021-06-29 Mike Frysinger <vapier@gentoo.org>
+
+ * cgen-types.h (HAVE_LONGLONG): Delete define.
+ [!HAVE_LONGLONG]: Delete all protected code.
+ * cgen-utils.c (make_struct_di): Delete.
+
2021-06-27 Mike Frysinger <vapier@gentoo.org>
* cgen-trace.c: Include diagnostics.h.
#define SIM_HAVE_ADDR_RANGE
#ifdef __GNUC__
-#define HAVE_LONGLONG
#undef DI_FN_SUPPORT
#else
-#undef HAVE_LONGLONG
#define DI_FN_SUPPORT
#endif
\f
typedef unsigned16 UHI;
typedef unsigned32 USI;
-#ifdef HAVE_LONGLONG
typedef signed64 DI;
typedef unsigned64 UDI;
#define GETLODI(di) ((SI) (di))
#define SETLODI(di, val) ((di) = (((di) & 0xffffffff00000000LL) | (val)))
#define SETHIDI(di, val) ((di) = (((di) & 0xffffffffLL) | (((DI) (val)) << 32)))
#define MAKEDI(hi, lo) ((((DI) (SI) (hi)) << 32) | ((UDI) (USI) (lo)))
-#else
-/* DI mode support if "long long" doesn't exist.
- At one point CGEN supported K&R C compilers, and ANSI C compilers without
- "long long". One can argue the various merits of keeping this in or
- throwing it out. I went to the trouble of adding it so for the time being
- I'm leaving it in. */
-typedef struct { SI hi,lo; } DI;
-typedef DI UDI;
-#define GETLODI(di) ((di).lo)
-#define GETHIDI(di) ((di).hi)
-#define SETLODI(di, val) ((di).lo = (val))
-#define SETHIDI(di, val) ((di).hi = (val))
-extern DI make_struct_di (SI, SI);
-#define MAKEDI(hi, lo) (make_struct_di ((hi), (lo)))
-#endif
/* These are used to record extracted raw data from an instruction, among other
things. It must be a host data type, and not a target one. */