diff options
author | Per Bothner <bothner@gcc.gnu.org> | 1995-03-21 17:05:16 -0800 |
---|---|---|
committer | Per Bothner <bothner@gcc.gnu.org> | 1995-03-21 17:05:16 -0800 |
commit | 7e1278231a96fa407fb907a36f1ff5d67c13161d (patch) | |
tree | b11ef8f8bd1f4c82baf9381081d2989b90049773 /gcc | |
parent | eb6b0c88861370a9fad8c58dea37ff0db8f90689 (diff) | |
download | gcc-7e1278231a96fa407fb907a36f1ff5d67c13161d.zip gcc-7e1278231a96fa407fb907a36f1ff5d67c13161d.tar.gz gcc-7e1278231a96fa407fb907a36f1ff5d67c13161d.tar.bz2 |
Merged in earlier cccp.c changes.
From-SVN: r9217
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/cpperror.c | 2 | ||||
-rw-r--r-- | gcc/cppexp.c | 16 |
2 files changed, 15 insertions, 3 deletions
diff --git a/gcc/cpperror.c b/gcc/cpperror.c index e552989..982bcc3 100644 --- a/gcc/cpperror.c +++ b/gcc/cpperror.c @@ -34,7 +34,7 @@ extern int errno; #ifndef VMS #ifndef HAVE_STRERROR extern int sys_nerr; -#if defined(bsd4_4) || defined(__NetBSD__) +#if defined(bsd4_4) extern const char *const sys_errlist[]; #else extern char *sys_errlist[]; diff --git a/gcc/cppexp.c b/gcc/cppexp.c index 11fdfdd..80a9269 100644 --- a/gcc/cppexp.c +++ b/gcc/cppexp.c @@ -119,12 +119,24 @@ static long right_shift (); #define HAVE_VALUE 4 /*#define UNSIGNEDP 8*/ +#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 + struct operation { short op; char rprio; /* Priority of op (relative to it right operand). */ char flags; char unsignedp; /* true if value should be treated as unsigned */ - long value; /* The value logically "right" of op. */ + HOST_WIDE_INT value; /* The value logically "right" of op. */ }; /* Take care of parsing a number (anything that starts with a digit). @@ -641,7 +653,7 @@ right_shift (pfile, a, unsignedp, b) /* Parse and evaluate a C expression, reading from PFILE. Returns the value of the expression. */ -long +HOST_WIDE_INT cpp_parse_expr (pfile) cpp_reader *pfile; { |