Skip to content

Fix macro protection in ARM SP asm#9772

Closed
bigbrett wants to merge 1 commit intowolfSSL:masterfrom
bigbrett:sp-rsa-unused-var
Closed

Fix macro protection in ARM SP asm#9772
bigbrett wants to merge 1 commit intowolfSSL:masterfrom
bigbrett:sp-rsa-unused-var

Conversation

@bigbrett
Copy link
Contributor

@bigbrett bigbrett commented Feb 13, 2026

Fixes macro protection for sp_*_cond_add_* in the ARM SP asm code to prevent unused function warning when used with RSA_LOW_MEM.

Before this PR, using RSA_LOW_MEM with WOLFSSL_SP_CORTEX_M_ASM would result in the following compiler warning:

wolfssl/wolfcrypt/src/sp_cortexm.c:29848:39: warning: 'sp_4096_cond_add_64' defined but not used [-Wunused-function]
29848 | WC_OMIT_FRAME_POINTER static sp_digit sp_4096_cond_add_64(sp_digit* r_p,

Saw it needs to be fixed in some of the other ARM asm as well.

…sed function warning when used with RSA_LOW_MEM
@bigbrett
Copy link
Contributor Author

@SparkiDev I believe the changes proposed in this PR actually need to be fixed in your ruby scripts. Therefore closing this PR and assigning you as an FYI.

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.

2 participants