[quake3-commits] [ioquake/ioq3] 1c66e3: Fix memmove()

Mikael Pettersson mikpe at it.uu.se
Sun Apr 14 15:12:27 EDT 2013


  Branch: refs/heads/master
  Home:   https://github.com/ioquake/ioq3
  Commit: 1c66e30e7e715f28c5b3fd3342425aac48ad7828
      https://github.com/ioquake/ioq3/commit/1c66e30e7e715f28c5b3fd3342425aac48ad7828
  Author: Mikael Pettersson <mikpe at it.uu.se>
  Date:   2013-04-14 (Sun, 14 Apr 2013)

  Changed paths:
    M code/tools/lcc/cpp/unix.c

  Log Message:
  -----------
  Fix memmove()

[The lcc source] overrides the libc memmove() with its own implementation,
but that implementation fails to follow the specification. In particular,
it returns NULL rather than memmove()'s first parameter.

GCC now optimizes based on this aspect of the specification, so things go
wrong at runtime.

[Text & patch from http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56881#c8]





More information about the quake3-commits mailing list