pkg/micro-ecc: fix on GCC 15.2.0 for AVR#21920
Draft
maribu wants to merge 1 commit intoRIOT-OS:masterfrom
Draft
Conversation
This was referenced Nov 29, 2025
ab4eac9 to
770fa86
Compare
- add a work around for a (presumably) compiler bug in GCC 15.2.0 register allocation code by manually a function argument into the Y register. - add missing `"memory"` clobber to inline asm implementations. With GCC 15.2.0 the `vli_mmod_fast_secp256r1()` function would not compute correctly without the `"memory"` clobber.
770fa86 to
5b562e6
Compare
benpicco
approved these changes
Nov 30, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Contribution description
vli_mmod_fast_secp256r1()Testing procedure
will fail to build without the first patch (0002-...patch) added, and will fail in the test without the second patch (0003-...patch) added when compiled with GCC 15.2.0.
Issues/PRs references
vli_mmod_fast_secp256r1()computes incorrect result on AVR with GCC 15.2.0 kmackay/micro-ecc#236