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: Those obnoxious "mktemp is not safe" warnings


On Wed, 21 Mar 2001, Richard Henderson wrote:

> Distinguishing NULL vs 0 is definitely needed -- the former may
> be a 64-bit pointer and the later a 32-bit integer. 
> 
> NULL vs NULL_RTX needn't be distinguished on any supported platform.

The problem here (and the need for NULL_PTR, presumably) being that some
system headers may define NULL to plain 0, as allowed by ISO C.

-- 
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]