cvs commit: src/bin/ed Makefile re.c
Dag-ErlingSmørgrav
des at des.no
Sun Jul 20 12:32:20 PDT 2003
Ruslan Ermilov <ru at 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=6 re.o DEBUG_FLAGS=-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
--
Dag-Erling Smørgrav - des at des.no
More information about the cvs-src
mailing list