From owner-freebsd-bugs Thu Dec 12 06:10:04 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id GAA13772 for bugs-outgoing; Thu, 12 Dec 1996 06:10:04 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id GAA13764; Thu, 12 Dec 1996 06:10:02 -0800 (PST) Date: Thu, 12 Dec 1996 06:10:02 -0800 (PST) Message-Id: <199612121410.GAA13764@freefall.freebsd.org> To: freebsd-bugs Cc: From: Bruce Evans Subject: Re: bin/2197: function prototype mismatch breaks make world. Reply-To: Bruce Evans Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk The following reply was made to PR bin/2197; it has been noted by GNATS. From: Bruce Evans To: akiyama@kme.mei.co.jp, FreeBSD-gnats-submit@freebsd.org Cc: Subject: Re: bin/2197: function prototype mismatch breaks make world. Date: Fri, 13 Dec 1996 00:27:32 +1100 >>Environment: > > All FreeBSD 2.2-ALPHA systems. Not all :-). >>Description: > > functional prototype of malloc() is not match between standard > header declaration and sources of /usr/bin/fmt and > /usr/games/adventure. > This breaks making all binaries at /usr/src. gcc apparently has a kludge to hide this bug. It apparently looks at the names of the headers. The following compiles with no warnings even with cc -ansi -pedantic: a.c: char *malloc(); #include The following compiles with just one diagnostic with cc -ansi -pedantic: b.c: #include char *malloc(); The output of the following still compiles: cc -E b.c >c.c The output of the following doesn't compile: cc -E -P b.c >d.c Bruce