Commit 5b65a74f by Richard Kenner

(HOST_BITS_PER_WIDE_INT, HOST_WIDE_INT): Put back.

(pcfinclude): Use HOST_WIDE_INT for casting pointer to integer.

From-SVN: r11037
parent e18c4cfe
...@@ -263,6 +263,20 @@ static void hack_vms_include_specification (); ...@@ -263,6 +263,20 @@ static void hack_vms_include_specification ();
#define MIN(X,Y) ((X) < (Y) ? (X) : (Y)) #define MIN(X,Y) ((X) < (Y) ? (X) : (Y))
#define MAX(X,Y) ((X) > (Y) ? (X) : (Y)) #define MAX(X,Y) ((X) > (Y) ? (X) : (Y))
/* Find the largest host integer type and set its size and type. */
#ifndef HOST_BITS_PER_WIDE_INT
#if HOST_BITS_PER_LONG > HOST_BITS_PER_INT
#define HOST_BITS_PER_WIDE_INT HOST_BITS_PER_LONG
#define HOST_WIDE_INT long
#else
#define HOST_BITS_PER_WIDE_INT HOST_BITS_PER_INT
#define HOST_WIDE_INT int
#endif
#endif
#ifndef S_ISREG #ifndef S_ISREG
#define S_ISREG(m) (((m) & S_IFMT) == S_IFREG) #define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
#endif #endif
...@@ -5257,12 +5271,12 @@ pcfinclude (buf, limit, name, op) ...@@ -5257,12 +5271,12 @@ pcfinclude (buf, limit, name, op)
/* First skip to a longword boundary */ /* First skip to a longword boundary */
/* ??? Why a 4-byte boundary? On all machines? */ /* ??? Why a 4-byte boundary? On all machines? */
/* NOTE: This works correctly even if int /* NOTE: This works correctly even if HOST_WIDE_INT
is narrower than a pointer. is narrower than a pointer.
Do not try risky measures here to get another type to use! Do not try risky measures here to get another type to use!
Do not include stddef.h--it will fail! */ Do not include stddef.h--it will fail! */
if ((int) cp & 3) if ((HOST_WIDE_INT) cp & 3)
cp += 4 - ((int) cp & 3); cp += 4 - ((HOST_WIDE_INT) cp & 3);
/* Now get the string. */ /* Now get the string. */
str = (STRINGDEF *) (GENERIC_PTR) cp; str = (STRINGDEF *) (GENERIC_PTR) cp;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment