This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: GCC headers and DJGPP port (OT)
- To: Linus Torvalds <torvalds at transmeta dot com>
- Subject: Re: GCC headers and DJGPP port (OT)
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 23 Jul 2000 23:09:45 -0300
- Cc: Marc Espie <espie at quatramaran dot ens dot fr>, gcc at gcc dot gnu dot org
- Organization: GCC Team, Red Hat
- References: <Pine.LNX.4.10.10007231152030.1760-100000@penguin.transmeta.com>
On Jul 23, 2000, Linus Torvalds <torvalds@transmeta.com> wrote:
> Basically I was just wondering why in the world gcc couldn't just
> recognize the "((void *)0)" construct as equivalent to the new
> __null?
Because then we wouldn't be able to warn about the potential mis-use
of NULL in a code snippet like:
void foo(void *);
void foo(char *);
void foo(int);
void foo(long);
...
foo(NULL);
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me