This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Warning for unadorned 0 in varargs lists?
- From: Segher Boessenkool <segher at kernel dot crashing dot org>
- To: "Dave Korn" <dk at artimi dot com>
- Cc: <gcc at gcc dot gnu dot org>, <jsm at polyomino dot org dot uk>, <hueffner at informatik dot uni-tuebingen dot de>, "'Kaveh R. Ghazi'" <ghazi at caip dot rutgers dot edu>, <espie at quatramaran dot ens dot fr>
- Date: Mon, 23 Aug 2004 18:31:52 +0200
- Subject: Re: Warning for unadorned 0 in varargs lists?
- References: <NUTMEGiGXix4A2DreBB00000edd@NUTMEG.CAM.ARTIMI.COM>
But the C language spec says that an integer constant zero must
compare
equal to a null pointer.
So why aren't we saying that the 64-bit ABIs are non-conformant?
When calling a varargs function, how would the compiler
know if the function expects a pointer (and of what type)
or an integer (of what size)?
The ABIs are fine.
Segher