Skip to content

Avoid gcc 7.2.1 compiler issues in nlr_push() #506

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

Merged
merged 2 commits into from
Jan 2, 2018

Conversation

dhalbert
Copy link
Collaborator

@dhalbert dhalbert commented Dec 31, 2017

Appears to fix #500. Extensive writeup there.

Also removed a couple of compiler flags that were not needed:
-mtune=cortex-m4 supposedly subsumed by -mcpu=cortex-m4
-mlong-calls handles calls further away than 64MB. That's not an issue for us! Removing this saves about 12.5kB (!) in M4 image.

Also turned on -flto in DEBUG=1 builds to make it more likely we'll hit issues, but made it easy to comment out.

@dhalbert dhalbert requested a review from tannewt December 31, 2017 20:01
tannewt
tannewt previously approved these changes Jan 2, 2018
Copy link
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work on this @dhalbert! Thank you for fixing it up. Please add one comment and then merge.

Copy link
Collaborator Author

@dhalbert dhalbert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

@tannewt tannewt merged commit ce81c8d into adafruit:master Jan 2, 2018
@dhalbert dhalbert deleted the 3.0_gcc721_fix_nlr_push branch January 5, 2018 02:14
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.

Metro-M4 problems with gcc 7.2.1
2 participants