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

Work around bad code generation with clang at -O2 #4945

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions library/bignum.c
Original file line number Diff line number Diff line change
Expand Up @@ -1635,10 +1635,10 @@ int mbedtls_mpi_sub_int( mbedtls_mpi *X, const mbedtls_mpi *A, mbedtls_mpi_sint
* \param b A scalar to multiply.
*/
static
#if defined(__APPLE__) && defined(__arm__)
#if defined(__clang__)
/*
* Apple LLVM version 4.2 (clang-425.0.24) (based on LLVM 3.2svn)
* appears to need this to prevent bad ARM code generation at -O3.
* This is required to prevent bad code generation with various
* versions of clang at -O2 and -O3.
*/
__attribute__ ((noinline))
#endif
Expand Down