This is the mail archive of the gcc@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]
Other format: [Raw text]

Re: Warning for unadorned 0 in varargs lists?


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



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