-
Notifications
You must be signed in to change notification settings - Fork 175
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lib: remove the "packed struct" approach to unaligned memory access
gcc 10 is miscompiling libdeflate on x86_64 at -O3 due to a regression in how packed structs are handled (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94994). Work around this by just always using memcpy() for unaligned accesses. It's unclear that the "packed struct" approach is worthwhile to maintain anymore. Currently I'm only aware that it's useful with old gcc's on arm32. Hopefully, compilers are good enough now that we can simply use memcpy() everywhere. Update #64
- Loading branch information
Showing
3 changed files
with
31 additions
and
57 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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