disable -fassociative-math (within -funsafe-math-optimizations)

This commit is contained in:
Daniel Agar 2019-05-28 11:54:56 -04:00 committed by Lorenz Meier
parent e7d0cabb52
commit 1d5684823d
1 changed files with 8 additions and 2 deletions

View File

@ -51,10 +51,16 @@ function(px4_add_common_flags)
-fdata-sections
-ffunction-sections
-fomit-frame-pointer
-funsafe-math-optimizations
#-funsafe-math-optimizations # Enables -fno-signed-zeros, -fno-trapping-math, -fassociative-math and -freciprocal-math
-fno-signed-zeros # Allow optimizations for floating-point arithmetic that ignore the signedness of zero
-fno-trapping-math # Compile code assuming that floating-point operations cannot generate user-visible traps
#-fassociative-math # Allow re-association of operands in series of floating-point operations
-freciprocal-math # Allow the reciprocal of a value to be used instead of dividing by the value if this enables optimizations
-fno-math-errno # Do not set errno after calling math functions that are executed with a single instruction, e.g., sqrt
-fno-strict-aliasing
-fno-math-errno
# visibility
-fvisibility=hidden