Commit e2e0986e by Gavin Romig-Koch Committed by Gavin Romig-Koch

c-lex.c (yylex): Replace warning about integer constants being larger than long-longs...

	* c-lex.c (yylex): Replace warning about integer constants being
	larger than long-longs, with a warning about integer constants
        being larger than the largest target integer.

From-SVN: r25364
parent e9c0315e
Mon Feb 22 10:55:00 1999 Gavin Romig-Koch <gavin@cygnus.com>
* c-lex.c (yylex): Replace warning about integer constants being
larger than long-longs, with a warning about integer constants
being larger than the largest target integer.
Fri Feb 19 18:18:56 1999 Don Bowman <don@pixstream.com> Fri Feb 19 18:18:56 1999 Don Bowman <don@pixstream.com>
* configure.in (mips*-*-vxworks*): Enable gthreads vxworks support. * configure.in (mips*-*-vxworks*): Enable gthreads vxworks support.
......
...@@ -1698,15 +1698,15 @@ yylex () ...@@ -1698,15 +1698,15 @@ yylex ()
c = GETC(); c = GETC();
} }
/* If the constant won't fit in an unsigned long long, /* If the constant won't fit in the targets widest int,
or it won't fit in the host's representation for ints,
then warn that the constant is out of range. */ then warn that the constant is out of range. */
/* ??? This assumes that long long and long integer types are #if HOST_BITS_PER_WIDE_INT >= 64
a multiple of 8 bits. This better than the original code bytes = TYPE_PRECISION (intTI_type_node) / HOST_BITS_PER_CHAR;
though which assumed that long was exactly 32 bits and long #else
long was exactly 64 bits. */ bytes = TYPE_PRECISION (intDI_type_node) / HOST_BITS_PER_CHAR;
#endif
bytes = TYPE_PRECISION (long_long_integer_type_node) / 8;
warn = overflow; warn = overflow;
for (i = bytes; i < TOTAL_PARTS; i++) for (i = bytes; i < TOTAL_PARTS; i++)
......
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