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

Updated code to build with GCC 10 - Updated ISR Sharing #272

Closed
wants to merge 1 commit into from

Conversation

ceres-c
Copy link
Contributor

@ceres-c ceres-c commented Aug 26, 2020

Since GCC 10, the compiler defaults to -fno-common (changelog), thus variables with multiple tentative definitions result in linker errors.
We've (me and @MrMoDDoM) extern-ed the shared variables to fix the issue.
I've tested the Chameleon with different configs (iso14/iso15) and it seems to be working. Further testing might be needed, but I'm confident the changes shouldn't break anything

Also, when I implemented ISR sharing, somehow I forgot about a function which had to be shared as well, so I fixed that mistake and added a couple of comments on how shared function calls work.

Since GCC 10, the compiler defaults to -fno-common, thus variables with
multiple tentative definitions result in linker errors.
We've (me and @MrMoDDoM) extern-ed the shared variables to fix the issue.

Also, when I implemented ISR sharing, somehow I forgot about a function
which was shared as well, so I fixed that mistake and added a couple of
comments on how shared function calls work.
@ceres-c ceres-c closed this Sep 4, 2020
c-rotte referenced this pull request in c-rotte/ChameleonMini-rebooted Feb 9, 2023
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.

1 participant