[prev in list] [next in list] [prev in thread] [next in thread]
List: pcc-list
Subject: [Pcc] Update MIPS min/max values
From: Brian Callahan <bcallah () devio ! us>
Date: 2015-12-31 3:22:51
Message-ID: 56849F8B.2010502 () devio ! us
[Download RAW message or body]
Hi --
This diff updates the MIPS min/max values. Taken from NetBSD: NetBSD
claims these values will work with pcc.
Please review and commit as appropriate.
~Brian
(PS: I think Jira might be broken. I tried to submit this as a bug
report there but Apache gave me back raw HTML.)
["mips-limits.diff" (text/plain)]
Index: macdefs.h
===================================================================
RCS file: /cvsroot/pcc/arch/mips/macdefs.h,v
retrieving revision 1.20
diff -u -p -r1.20 macdefs.h
--- macdefs.h 24 Nov 2015 17:35:11 -0000 1.20
+++ macdefs.h 31 Dec 2015 03:08:09 -0000
@@ -88,13 +88,13 @@
#define MIN_SHORT -32768
#define MAX_SHORT 32767
#define MAX_USHORT 65535
-#define MIN_INT -1
+#define MIN_INT (-0x7fffffff-1)
#define MAX_INT 0x7fffffff
-#define MAX_UNSIGNED 0xffffffff
+#define MAX_UNSIGNED 0xffffffffU
#define MIN_LONG MIN_INT
-#define MAX_LONG MAX_INT
-#define MAX_ULONG MAX_UNSIGNED
-#define MIN_LONGLONG 0x8000000000000000LL
+#define MAX_LONG 0x7fffffffL
+#define MAX_ULONG 0xffffffffUL
+#define MIN_LONGLONG (-0x7fffffffffffffffLL-1)
#define MAX_LONGLONG 0x7fffffffffffffffLL
#define MAX_ULONGLONG 0xffffffffffffffffULL
_______________________________________________
Pcc mailing list
Pcc@lists.ludd.ltu.se
https://lists.ludd.ltu.se/cgi-bin/mailman/listinfo/pcc
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic