From owner-cvs-src@FreeBSD.ORG Sun Jul 20 12:32:19 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 8A0E437B401; Sun, 20 Jul 2003 12:32:19 -0700 (PDT) Received: from mail.broadpark.no (mail.broadpark.no [217.13.4.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1D6A743FA3; Sun, 20 Jul 2003 12:32:18 -0700 (PDT) (envelope-from des@des.no) Received: from smtp.des.no (37.80-203-228.nextgentel.com [80.203.228.37]) by mail.broadpark.no (Postfix) with ESMTP id 905FB7888D; Sun, 20 Jul 2003 21:32:16 +0200 (MEST) Received: by smtp.des.no (Pony Express, from userid 666) id 5A5F795957; Sun, 20 Jul 2003 21:32:16 +0200 (CEST) Received: from dwp.des.no (dwp.des.no [10.0.0.4]) by smtp.des.no (Pony Express) with ESMTP id C065E95954; Sun, 20 Jul 2003 21:32:12 +0200 (CEST) Received: by dwp.des.no (Postfix, from userid 2602) id A104DB822; Sun, 20 Jul 2003 21:32:12 +0200 (CEST) To: Ruslan Ermilov References: <200307201024.h6KAO9tk009943@repoman.freebsd.org> <20030720213903.J595@gamplex.bde.org> <20030720120438.GD47250@sunbay.com> From: des@des.no (Dag-Erling =?iso-8859-1?q?Sm=F8rgrav?=) Date: Sun, 20 Jul 2003 21:32:12 +0200 In-Reply-To: <20030720120438.GD47250@sunbay.com> (Ruslan Ermilov's message of "Sun, 20 Jul 2003 15:04:38 +0300") Message-ID: User-Agent: Gnus/5.090024 (Oort Gnus v0.24) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, hits=-3.0 required=8.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES, REPLY_WITH_QUOTES,USER_AGENT_GNUS_UA version=2.55 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org cc: Bruce Evans Subject: Re: cvs commit: src/bin/ed Makefile re.c 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: Sun, 20 Jul 2003 19:32:20 -0000 Ruslan Ermilov writes: > On Sun, Jul 20, 2003 at 09:57:26PM +1000, Bruce Evans wrote: > > The bug is in gcc-3.3, so it shouldn't be fixed here. > Why is this a bug in gcc? Compiling re.c,v 1.19 like this works: > > make WARNS=3D6 re.o DEBUG_FLAGS=3D-fno-builtin It *is* a bug in GCC; -fno-builtin should be the default, and / or GCC should learn not to define builtins unless an appropriate prototype is in scope. It is incorrect for the compiler to reserve names like sin, log or exp in compilation units that don't #include . DES --=20 Dag-Erling Sm=F8rgrav - des@des.no