Date: Sun, 20 Jul 2003 21:32:12 +0200 From: des@des.no (Dag-Erling =?iso-8859-1?q?Sm=F8rgrav?=) To: Ruslan Ermilov <ru@FreeBSD.org> Cc: Bruce Evans <bde@zeta.org.au> Subject: Re: cvs commit: src/bin/ed Makefile re.c Message-ID: <xzp65lx9epv.fsf@dwp.des.no> In-Reply-To: <20030720120438.GD47250@sunbay.com> (Ruslan Ermilov's message of "Sun, 20 Jul 2003 15:04:38 %2B0300") References: <200307201024.h6KAO9tk009943@repoman.freebsd.org> <20030720213903.J595@gamplex.bde.org> <20030720120438.GD47250@sunbay.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Ruslan Ermilov <ru@FreeBSD.org> 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 <math.h>. DES --=20 Dag-Erling Sm=F8rgrav - des@des.no
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?xzp65lx9epv.fsf>