From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeffrey A Law To: hjl@lucon.org (H.J. Lu) Cc: jfc@mit.edu (John Carr), egcs@cygnus.com, drepper@cygnus.com (Ulrich Drepper) Subject: Re: An optimization bug in egcs 1.0.2? Date: Mon, 23 Mar 1998 23:47:00 -0000 Message-id: <1164.890723670@hurl.cygnus.com> References: X-SW-Source: 1998-03/msg00799.html 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