This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Respin: C/C++/ObjC numeric constant parsing overhaul
- To: Zack Weinberg <zack at codesourcery dot com>
- Subject: Re: Respin: C/C++/ObjC numeric constant parsing overhaul
- From: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- Date: Sat, 13 Oct 2001 01:56:49 +0100 (BST)
- cc: <gcc-patches at gcc dot gnu dot org>
On Thu, 11 Oct 2001, Zack Weinberg wrote:
> A quick summary: this unifies the numeric-constant parsing code
> between the C-family front ends and cpplib, and implements the C99
> type selection rules.
The part of gcc.texi reading
@item
@code{-2147483648} is positive.
This is because 2147483648 cannot fit in the type @code{int}, so
(following the ISO C rules) its data type is @code{unsigned long int}.
Negating this value yields 2147483648 again.
needs updating to discuss the differences between the C89 and C99 rules.
--
Joseph S. Myers
jsm28@cam.ac.uk