Open
Conversation
[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]
ibara
pushed a commit
to ibara/LiteBSD-Ports
that referenced
this pull request
Feb 23, 2016
…he fix is obvious). From drh/lcc#16
AJBats
added a commit
to AJBats/saturncc
that referenced
this pull request
Apr 18, 2026
Archive the sanitize-phase checklist as TODO_sanitize.md (history intact via git mv) and create a fresh TODO.md scoped to tier-1 byte-match. Starting state: 1 byte-identical (drh#8), 2 pinned with non-zero baselines (drh#16=438, #179=26), 6 Gap 18 skips, 187 unmeasured. Workflow points at asmdiff.sh for review, validate_byte_match.sh pin for gating, and flags Gap 15 void-sanitized functions (#135/#136/#183/#188) for r0:r1 return-convention reconstruction. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
[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]