diff src/m/acorn.h @ 412:697ef44129c6 r21-2-14

Import from CVS: tag r21-2-14
author cvs
date Mon, 13 Aug 2007 11:20:41 +0200
parents a86b2b5e0111
children
line wrap: on
line diff
--- a/src/m/acorn.h	Mon Aug 13 11:19:22 2007 +0200
+++ b/src/m/acorn.h	Mon Aug 13 11:20:41 2007 +0200
@@ -20,6 +20,19 @@
 
 /* Synched up with: FSF 19.31. */
 
+/* Define WORD_MACHINE if addresses and such have
+ * to be corrected before they can be used as byte counts.  */
+
+#undef WORD_MACHINE
+
+/* Define how to take a char and sign-extend into an int.
+   On machines where char is signed, this is a no-op.  */
+
+/* ARM note - The RISCiX Norcroft C Compiler has ALL
+   non-32-bit types as unsigned */
+
+#define SIGN_EXTEND_CHAR(c) (((int)(c) << 24) >> 24)
+
 /* Now define a symbol for the cpu type, if your compiler
    does not define it automatically:
    Ones defined so far include vax, m68000, ns16000, pyramid,
@@ -27,6 +40,14 @@
 
 /* ARM note - this is done by the Norcroft compiler - symbol is `__arm' */
 
+/* Define EXPLICIT_SIGN_EXTEND if XINT must explicitly sign-extend
+   the bit field into an int.  In other words, if bit fields
+   are always unsigned.
+
+   If you use NO_UNION_TYPE, this flag does not matter.  */
+
+#define EXPLICIT_SIGN_EXTEND
+
 #ifdef LDAV_SYMBOL
 #undef LDAV_SYMBOL
 #endif