This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: An optimization bug in egcs 1.0.2?



  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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]