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

Add aligned attribute to avoid issues with gcc5+ when accessing regis… #73

Merged
merged 1 commit into from
Mar 25, 2016
Merged

Add aligned attribute to avoid issues with gcc5+ when accessing regis… #73

merged 1 commit into from
Mar 25, 2016

Conversation

sschroe
Copy link
Contributor

@sschroe sschroe commented Mar 25, 2016

These changes aim to fix the register access issues with gcc 5.1+ initially reported in #39. Adding the aligned attribute makes gcc produce the desired code rather than assuming unaligned access.

Please have a look if this is an acceptable solution.

@jgarff jgarff merged commit c4836df into jgarff:master Mar 25, 2016
@jgarff
Copy link
Owner

jgarff commented Mar 25, 2016

Merged. Also tested with gcc 4.9.2 without issues. Thanks for the patch!

@sschroe sschroe deleted the gcc5_struct_issues branch March 25, 2016 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants