mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 01:12:11 +00:00
disable -fassociative-math (within -funsafe-math-optimizations)
This commit is contained in:
committed by
Lorenz Meier
parent
e7d0cabb52
commit
1d5684823d
@@ -51,10 +51,16 @@ function(px4_add_common_flags)
|
|||||||
-fdata-sections
|
-fdata-sections
|
||||||
-ffunction-sections
|
-ffunction-sections
|
||||||
-fomit-frame-pointer
|
-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-strict-aliasing
|
||||||
-fno-math-errno
|
|
||||||
|
|
||||||
# visibility
|
# visibility
|
||||||
-fvisibility=hidden
|
-fvisibility=hidden
|
||||||
|
|||||||
Reference in New Issue
Block a user