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

armclang compile fail for Cortex-m0 #7647

Closed
daverodgman opened this issue May 24, 2023 · 2 comments
Closed

armclang compile fail for Cortex-m0 #7647

daverodgman opened this issue May 24, 2023 · 2 comments
Labels
bug component-crypto Crypto primitives and low-level interfaces

Comments

@daverodgman
Copy link
Contributor

daverodgman commented May 24, 2023

Summary

make lib CFLAGS="-Os --target=arm-arm-none-eabi -mcpu=cortex-m0" CC=armclang fails (development and 2.28):

Many errors of the form:

bignum.c:1446:9: error: inline assembly requires more registers than available
        MULADDC_INIT
        ^
../include/mbedtls/bn_mul.h:683:13: note: expanded from macro 'MULADDC_INIT'
            "ldr    r0, %3                      \n\t"   \
            ^

This is very long-standing - I can reproduce with e.g. Mbed TLS 2.16.0 so presumably not too many people are affected by this (which seems surprising).

@daverodgman daverodgman added bug component-crypto Crypto primitives and low-level interfaces labels May 24, 2023
@daverodgman
Copy link
Contributor Author

I wonder if this could be an armclang bug. It only fails when -Os is provided.

@gilles-peskine-arm
Copy link
Contributor

This was already reported in #1077

@gilles-peskine-arm gilles-peskine-arm closed this as not planned Won't fix, can't repro, duplicate, stale May 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug component-crypto Crypto primitives and low-level interfaces
Projects
None yet
Development

No branches or pull requests

2 participants