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

Revert pull 5210, set DEBUG=1 gcc optimization flag to -Og for the RP2 port. #9925

Merged
merged 1 commit into from
Dec 30, 2024

Conversation

eightycc
Copy link

#5210 changed the optimization flag for DEBUG=1 RP2 builds from -Og to -O3 to work around an ARM toolchain bug in CRT that caused a crash during C initialization. This bug is not present in at least ARM toolchain versions 12.3 and up. Since #9779 guarantees that the toolchain will be at least 13, it is safe to revert #5210.

This change reverts to-Og which provides a superior gdb debugging experience compared to -O3.

Copy link
Member

@jepler jepler left a comment

Choose a reason for hiding this comment

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

If you verified it gets past early startup this seems fine to apply.

@eightycc
Copy link
Author

@jepler Yes, starts up without issue. I've been using this patch for over a year on various RP2 boards.

@dhalbert dhalbert merged commit d9ea4ab into adafruit:main Dec 30, 2024
152 checks passed
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.

3 participants