aboutsummaryrefslogtreecommitdiff
path: root/gdb/config
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>1998-02-06 23:18:29 +0000
committerJeff Law <law@redhat.com>1998-02-06 23:18:29 +0000
commit4cb366740e10663dc2480554831ecb51b10df423 (patch)
treeb9b190de5ead2360109fd445ecdd159c14dfa053 /gdb/config
parenteb0a94a1738abf018a666634ffa55fda70b45c59 (diff)
downloadgdb-4cb366740e10663dc2480554831ecb51b10df423.zip
gdb-4cb366740e10663dc2480554831ecb51b10df423.tar.gz
gdb-4cb366740e10663dc2480554831ecb51b10df423.tar.bz2
* config/mips/tm-mips64.h (TARGET_LONG_BIT): Allow final target to
override. (TARGET_LONG_LONG_BIT): Likewise. (TARGET_PTR_BIT): Likewise. start-sanitize-r5900 * config/mips/tm-r5900.h (TARGET_PTR_BIT): Define to 32 bits. end-sanitize-r5900
Diffstat (limited to 'gdb/config')
-rw-r--r--gdb/config/mips/tm-mips64.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/gdb/config/mips/tm-mips64.h b/gdb/config/mips/tm-mips64.h
index c1595e1..4dc35e2 100644
--- a/gdb/config/mips/tm-mips64.h
+++ b/gdb/config/mips/tm-mips64.h
@@ -33,10 +33,19 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#define OP_LDGPR 067 /* ld */
#if defined(MIPS_EABI) && (MIPS_EABI != 0)
-/* define sizes for 64-bit data types */
+/* Define sizes for 64-bit data types, allow specific targets to override
+ these values. Doing so may violate the strict EABI, but it's necessary
+ for some MIPS III and MIPS IV machines that want 64bit longs, but 32bit
+ pointers. */
+#ifndef TARGET_LONG_BIT
#define TARGET_LONG_BIT 64
+#endif
+#ifndef TARGET_LONG_LONG_BIT
#define TARGET_LONG_LONG_BIT 64
+#endif
+#ifndef TARGET_PTR_BIT
#define TARGET_PTR_BIT 64
+#endif
#endif /* MIPS_EABI */
/* Get the basic MIPS definitions. */