This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Respin: C/C++/ObjC numeric constant parsing overhaul


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]