From owner-cvs-src@FreeBSD.ORG Thu Oct 30 00:23:28 2003 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D1C8816A4CE; Thu, 30 Oct 2003 00:23:28 -0800 (PST) Received: from cirb503493.alcatel.com.au (c211-30-75-229.belrs2.nsw.optusnet.com.au [211.30.75.229]) by mx1.FreeBSD.org (Postfix) with ESMTP id B1DDB43FF9; Thu, 30 Oct 2003 00:23:26 -0800 (PST) (envelope-from PeterJeremy@optushome.com.au) Received: from cirb503493.alcatel.com.au (localhost.alcatel.com.au [127.0.0.1])h9U8NLf1026683; Thu, 30 Oct 2003 19:23:21 +1100 (EST) (envelope-from jeremyp@cirb503493.alcatel.com.au) Received: (from jeremyp@localhost)h9U8NEeM026682; Thu, 30 Oct 2003 19:23:14 +1100 (EST) (envelope-from jeremyp) Date: Thu, 30 Oct 2003 19:23:13 +1100 From: Peter Jeremy To: Bruce Evans Message-ID: <20031030082313.GA1649@cirb503493.alcatel.com.au> References: <200310260449.h9Q4nwm9016893@repoman.freebsd.org> <20031026171515.P17272@gamplex.bde.org> <20031027152156.Y21211@gamplex.bde.org> <20031028222117.X4879@gamplex.bde.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20031028222117.X4879@gamplex.bde.org> User-Agent: Mutt/1.4.1i cc: Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?= cc: src-committers@freebsd.org cc: Peter Wemm cc: cvs-all@freebsd.org cc: cvs-src@freebsd.org Subject: Re: cvs commit: src/usr.bin/chat Makefile X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Oct 2003 08:23:29 -0000 On Tue, Oct 28, 2003 at 10:28:24PM +1100, Bruce Evans wrote: >Similarly for `return (log(3));`. gcc doesn't do the log() inline, at >least on i386's with no options, but it knows to pass 3.0 and convert >the return value to int. It shouldn't. If I write: int foo(int x) { return (log(x)); } without explicitly declaring any prototype for log(), gcc should assume a declaration "int log(int);". Arbitrarily deciding that the declaration should be "double log(double);" breaks K&R C and C90 programs. It seems that gcc is diverging more and more from the ISO standards. Peter