Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cpu/esp*: Fix cast alignment issues #15464

Merged
merged 1 commit into from
Nov 19, 2020
Merged

Conversation

maribu
Copy link
Member

@maribu maribu commented Nov 18, 2020

Contribution description

  • Add WORD_ALIGNED attribute to potentially unaligned allocations
  • Use intermediate cast to uintptr_t to silence false positives of -Wcast-align

Testing procedure

Hopefully, the allocations previously missing the WORD_ALIGNED attribute ended up word aligned by luck, so binaries don't change. Otherwise, this fixes a bug.

Issues/PRs references

Needed for #14955

- Add `WORD_ALIGNED` attribute to potentially unaligned allocations
- Use intermediate cast to `uintptr_t` to silence false positives of
  `-Wcast-align`
@maribu maribu added Impact: minor The PR is small in size and might only require a quick look of a knowledgeable reviewer Platform: ESP Platform: This PR/issue effects ESP-based platforms Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors) labels Nov 18, 2020
@benpicco benpicco added the CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR label Nov 19, 2020
@benpicco benpicco merged commit 63af227 into RIOT-OS:master Nov 19, 2020
@maribu maribu deleted the esp-cast-align branch November 20, 2020 09:14
@maribu
Copy link
Member Author

maribu commented Nov 20, 2020

Thanks :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Impact: minor The PR is small in size and might only require a quick look of a knowledgeable reviewer Platform: ESP Platform: This PR/issue effects ESP-based platforms Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants