This is the mail archive of the egcs@egcs.cygnus.com mailing list for the EGCS project. See the EGCS home page for more information.


[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index] [Subject Index] [Author Index] [Thread Index]

Re: cpp issues



On Thu, 25 Feb 1999 23:53:07 -0500 (EST), "Kaveh R. Ghazi" wrote:
> > >         * cppexp.c (left_shift, right_shift, parse_charconst, COMPARE,
> > >         cpp_parse_expr): Replace uses of long/HOST_BITS_PER_LONG with
> > >         HOST_WIDEST_INT/HOST_BITS_PER_WIDEST_INT.

I had to adjust the test case slightly, but this works: your testcase
passes, and glibc's ufc-crypt.h correctly detects x86 as a 32bit
system.

(The test case adjustment needed: in the shifts, you had "1LL << 63"
which shifts the 1 into the sign bit.  cpplib would arithmetic-shift
that back 63 to check for overflow, get -1, and issue a pedwarn.  I
changed the 63 to a 62 to avoid that.)

zw