-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
bignum: excessively long string literal triggers clang precautionary warning #482
Labels
Comments
ARM Internal Ref: IOTSSL-772 |
Thanks for the feedback. Can I ask what version of clang you are using? I haven't seen these warnings so far. I'm sure it's a legitimate issue, but I'd like to ensure I can reproduce it and make it part of our test regime before we fix it. |
|
redtangent
added a commit
to redtangent/mbedtls
that referenced
this issue
Sep 30, 2018
Remove the trailing whitespace from the inline assembly for AMD64 target, to overcome a warning in Clang, which was objecting to the string literal generated by the inline assembly being greater than 4096 characters specified by the ISO C99 standard. (-Woverlength-strings) This is a cosmetic change and doesn't change the logic of the code in any way. This change only fixes the problem for AMD64 target, and leaves other targets as they are. Fixes Mbed-TLS#482.
redtangent
added a commit
to redtangent/mbedtls
that referenced
this issue
Sep 30, 2018
Add Changelog entry for inline assembly/literal strings too long issue with Clang.
4 tasks
redtangent
added a commit
to redtangent/mbedtls
that referenced
this issue
Sep 30, 2018
Add Changelog entry for inline assembly/literal strings too long issue with Clang.
redtangent
added a commit
to redtangent/mbedtls
that referenced
this issue
Oct 6, 2018
Remove the trailing whitespace from the inline assembly for AMD64 target, to overcome a warning in Clang, which was objecting to the string literal generated by the inline assembly being greater than 4096 characters specified by the ISO C99 standard. (-Woverlength-strings) This is a cosmetic change and doesn't change the logic of the code in any way. This change only fixes the problem for AMD64 target, and leaves other targets as they are. Fixes Mbed-TLS#482.
redtangent
added a commit
to redtangent/mbedtls
that referenced
this issue
Oct 6, 2018
Add Changelog entry for inline assembly/literal strings too long issue with Clang.
4 tasks
redtangent
added a commit
to redtangent/mbedtls
that referenced
this issue
Oct 6, 2018
Remove the trailing whitespace from the inline assembly for AMD64 target, to overcome a warning in Clang, which was objecting to the string literal generated by the inline assembly being greater than 4096 characters specified by the ISO C99 standard. (-Woverlength-strings) This is a cosmetic change and doesn't change the logic of the code in any way. This change only fixes the problem for AMD64 target, and leaves other targets as they are. Fixes Mbed-TLS#482.
redtangent
added a commit
to redtangent/mbedtls
that referenced
this issue
Oct 6, 2018
Add Changelog entry for inline assembly/literal strings too long issue with Clang.
4 tasks
redtangent
added a commit
to redtangent/mbedtls
that referenced
this issue
Oct 9, 2018
Add Changelog entry for inline assembly/literal strings too long issue with Clang.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When compiling bignum.c with clang, I receive the following warning:
It seems as if removing the trailing spaces before
\n\t
might be a good approach to reduce its length while not removing any instructions.The text was updated successfully, but these errors were encountered: