Skip to content

Avoid gcc 7.2.1 compiler issues in nlr_push()#506

Merged
tannewt merged 2 commits intoadafruit:masterfrom
dhalbert:3.0_gcc721_fix_nlr_push
Jan 2, 2018
Merged

Avoid gcc 7.2.1 compiler issues in nlr_push()#506
tannewt merged 2 commits intoadafruit:masterfrom
dhalbert:3.0_gcc721_fix_nlr_push

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

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