This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Those obnoxious "mktemp is not safe" warnings
- To: Richard Henderson <rth at redhat dot com>
- Subject: Re: Those obnoxious "mktemp is not safe" warnings
- From: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- Date: Wed, 21 Mar 2001 22:24:06 +0000 (GMT)
- cc: Zack Weinberg <zackw at Stanford dot EDU>, DJ Delorie <dj at redhat dot com>, <gcc-patches at gcc dot gnu dot org>
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