From owner-freebsd-current Tue Apr 22 09:25:40 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id JAA22857 for current-outgoing; Tue, 22 Apr 1997 09:25:40 -0700 (PDT) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id JAA22847 for ; Tue, 22 Apr 1997 09:25:35 -0700 (PDT) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.5/8.6.9) id CAA25593 for current@freebsd.org; Wed, 23 Apr 1997 02:25:24 +1000 Date: Wed, 23 Apr 1997 02:25:24 +1000 From: Bruce Evans Message-Id: <199704221625.CAA25593@godzilla.zeta.org.au> To: current@freebsd.org Subject: gcc bugfeatures Sender: owner-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk gcc apparently has a hack to make the following broken program compile: #include char *malloc(), *realloc(); but only when 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 is found in /usr/include/sys, then `gcc -pedantic' doesn't warn about long longs; otherwise it does. Bruce