This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: An optimization bug in egcs 1.0.2?
- To: hjl at lucon dot org (H.J. Lu)
- Subject: Re: An optimization bug in egcs 1.0.2?
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Tue, 24 Mar 1998 00:14:30 -0700
- cc: jfc at mit dot edu (John Carr), egcs at cygnus dot com, drepper at cygnus dot com (Ulrich Drepper)
- Reply-To: law at cygnus dot com
In message <m0yHHxm-00058JC@ocean.lucon.org>you write:
> >
> >
> > The code calls memcpy with overlapping objects. That is undefined in
> > ANSI C; use memmove instead. (It also subtracts pointers to void so
> > the authors presumably didn't care about ANSI C, but the misuse of
> > memcpy is a real problem.)
>
> It is from the dynamic linker in glibc 2. memcpy is safe there.
> memcpy is used for optimization.
Is the compiler producing an inline expansion of memcpy? If so
you'll need to compile with -fno-builtin.
jeff