preprocessor/5806: The preprocessor evaluates expression s in 64-bit, violating IS C++ 16.1.4

'Neil Booth' neil@daikokuya.demon.co.uk
Thu Mar 14 13:06:00 GMT 2002


The following reply was made to PR preprocessor/5806; it has been noted by GNATS.

From: 'Neil Booth' <neil@daikokuya.demon.co.uk>
To: "Dana, Eric" <Eric_Dana@bmc.com>
Cc: 'Zack Weinberg' <zack@codesourcery.com>,
	"'gcc-gnats@gcc.gnu.org'" <gcc-gnats@gcc.gnu.org>,
	"Schoeller, Dick" <Dick_Schoeller@bmc.com>
Subject: Re: preprocessor/5806: The preprocessor evaluates expression s in 64-bit, violating IS C++ 16.1.4
Date: Thu, 14 Mar 2002 21:01:59 +0000

 Dana, Eric wrote:-
 
 >    Is there anything that can be done for 3.1? In it's present state,
 >    Dynix cannot work properly as many of its include files test for
 >    32/64 bit using the preprocessor. For example:
 
 This is a broken test, so there is little point fixing GCC for this
 purpose.
 
 > 	#if ((~0UL) == 0xffffffffUL)
 > 	typedef unsigned int    size_t;         /* ILP32 size_t */
 > 	#else /* ((~0UL) == 0xffffffffUL) */
 > 	typedef unsigned long   size_t;         /* LP64 size_t */
 > 	#endif /* ((~0UL) == 0xffffffffUL) */
 
 Neil.



More information about the Gcc-prs mailing list