-
Notifications
You must be signed in to change notification settings - Fork 792
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
gcc : ‘asm’ operand has impossible constraints, on 32bit intel #4245
Comments
Hi @vaintroub , Thank you for reaching out to us. I will work on reproducing your issue here. Thanks, |
Hi @vaintroub, Thanks for the report. I have reproduced and believe I know a solution. I was able to compile by adding I'll work on putting a PR up. If you are able, can you confirm that adding |
That does not solve it in all circumstances. We use sometimes -fno-omit-frame-pointer, also with optimized build. Here is an example where -fomit-frame-pointer -fPIC fails : Here is an example where -fomit-frame-pointer -fno-PIC succeeds (same machine) |
@vaintroub Do I understand correctly that you have a workaround for now? The only solution that I know of that would avoid this completely is using Out of curiosity have you considered |
We're also seeing this in OpenWrt after switching the default GCC version from 8 to 10. |
Hi @vaintroub, Please try pull request #4317 I've made a small change to make the assembly code snippets work. Thanks. |
This seems to fix the problem for 32bit x86 in OpenWrt, thanks! |
Unfortunately, it is a not easy to test for me at the moment, but once it is in, but I'm happy to hear about the progress, |
Hi @vaintroub The pull request has been merged to master. Let me know when you have a chance to test it. Thanks, |
@vaintroub Haven't heard back for a while and worked for others, so I'm marking it closed. Please open a new bug if you have any issues. |
Tring to use TFM library (-DUSE_FAST_MATH) on 32bit intel results into
In file included from wolfssl/wolfssl/wolfcrypt/src/tfm.c:51:
wolfssl/wolfssl/wolfcrypt/src/tfm.c: In function ‘fp_sqr_comba’:
wolfssl/wolfcrypt/src/asm.c:709:1: error: ‘asm’ operand has impossible constraints
asm(
^~~~~~~
wolfssl/wolfssl/wolfcrypt/src/tfm.c:3148:11: note: in expansion of macro ‘SQRADD2’
SQRADD2(*tmpx++, *tmpy--);
^~~~~~~
wolfssl/wolfssl/wolfcrypt/src/asm.c:700:1: error: ‘asm’ operand has impossible constraints
asm(
^~~~~~~
/home/wlad/10.4/extra/wolfssl/wolfssl/wolfcrypt/src/tfm.c:3154:11: note: in expansion of macro ‘SQRADD’
SQRADD(A->dp[ix>>1], A->dp[ix>>1]);
Relevant compile line
user_settings.h
The text was updated successfully, but these errors were encountered: