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] |
Other format: | [Raw text] |
On Fri, Apr 29, 2005 at 04:12:58PM -0700, Richard Henderson wrote: > FWIW, Michael, I agree that allowing NULL (and thus __null) to be used > as a valid sentinal is the only way this will practically be useful to > real code. > > No matter what the C++ standard might say, there are too many people > that expect C++ to work like C (and vice-versa). Thus sizeof(NULL) > must equal sizeof(void *), and woe to the poor sod that thinks they > can deploy an abi that passes pointers and integers in different > places --- at least wrt stdargs. Btw, I already marked up glib2, gtk2, some more GNOME libs, several X core headers, fontconfig with sentinel markup... (patches upstream already to a large degree). There were a lot of warnings in C++ code which can be avoided by this patch, almost all other warnings pointed to real problems. Ciao, Marcus
Attachment:
pgp00000.pgp
Description: PGP signature
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |