Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix alignment of bth_nonleaf_entry under 32-bit Mac GCC
The layout constraints on this structure changed in Subversion r48798, requiring the overall structure to be 6 bytes in size. This proves somewhat tricky to get working on Mac GCC: 1) We need to remove the PSTSDK_MS_STRUCT option, which overrides all other packing options. 2) We need to add some new declarations to the 'page' member variable. 3) We can no longer pass entry.page directly to make_pair, because make_pair requires an aligned reference for its second argument. Instead, we copy 'page' to a normally-aligned temporary variable. With these changes, the code builds and passes all test suites again.
- Loading branch information
Showing
3 changed files
with
9 additions
and
4 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