Tools: ardupilotwaf: disable SLP vectorization for clang++ in SITL

There appears to be a problem caused by clang++'s optimisations to do
with SLP vectorizations.

It *looks* like it doesn't push enough operands into one of the vectors,
so you end up with a division by zero when attempting to execute an SSE
instruction.
This commit is contained in:
Peter Barker 2018-02-28 14:56:05 +11:00 committed by Peter Barker
parent 9897ff60de
commit 053d789843

View File

@ -247,6 +247,12 @@ class sitl(Board):
'winmm',
]
if 'clang++' in cfg.env.COMPILER_CXX:
print("Disabling SLP for clang++")
env.CXXFLAGS += [
'-fno-slp-vectorize' # compiler bug when trying to use SLP
]
class chibios(Board):
toolchain = 'arm-none-eabi'