Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Apr 1997 02:25:24 +1000
From:      Bruce Evans <bde@zeta.org.au>
To:        current@freebsd.org
Subject:   gcc bugfeatures
Message-ID:  <199704221625.CAA25593@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
gcc apparently has a hack to make the following broken program compile:

	#include <stdlib.h>
	char *malloc(), *realloc();

but only when <stdlib.h> is found in /usr/include.  mk_cmds/ct.y has
broken code like this, so it compiles if ${DESTDIR} is "/" (otherwise
stdlib.h is found in a nonstandard place).

gcc apparently has a similar hack for `long long'.  If <sys/types.h>
is found in /usr/include/sys, then `gcc -pedantic' doesn't warn about
long longs; otherwise it does.

Bruce



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199704221625.CAA25593>