diff options
author | Mike Frysinger <vapier@gentoo.org> | 2024-01-10 22:25:51 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2024-01-10 22:37:03 -0500 |
commit | 08a7937f3a7301254e0ee98a93d94010e4ce5c5a (patch) | |
tree | a811637e83fc126ccfd8ee86927d7ff9d21d9390 /sim/config.h.in | |
parent | dbd4aebe5ba95f95735e333e5483ad4a80726a08 (diff) | |
download | gdb-08a7937f3a7301254e0ee98a93d94010e4ce5c5a.zip gdb-08a7937f3a7301254e0ee98a93d94010e4ce5c5a.tar.gz gdb-08a7937f3a7301254e0ee98a93d94010e4ce5c5a.tar.bz2 |
sim: m32r: fixup some of the int<->pointer casts
The m32r trap code was written for a 32-bit Linux host (and really, one
whose Linux ABI matched pretty exactly). This has lead to conversions
between integers and pointers which breaks down hard on 64-bit hosts.
Clean up some of the functions where possible to avoid unnecessary
conversions, use uintptr_t to cast 32-bit target pointers to host
pointers in some places, and just stub out a few functions that can't
easily be salvaged currently when sizeof(void*) is not 32-bits. This
is a bit ugly, but lets us enable warnings for the whole file.
Diffstat (limited to 'sim/config.h.in')
-rw-r--r-- | sim/config.h.in | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sim/config.h.in b/sim/config.h.in index de84c64..f5742a9 100644 --- a/sim/config.h.in +++ b/sim/config.h.in @@ -489,6 +489,9 @@ /* The size of `long long', as computed by sizeof. */ #undef SIZEOF_LONG_LONG +/* The size of `void *', as computed by sizeof. */ +#undef SIZEOF_VOID_P + /* Define to 1 if you have the ANSI C header files. */ #undef STDC_HEADERS |