ArchitectureRules: Disable autovectorization for the kernel (for now.)

See #18593.
This commit is contained in:
Augustin Cavalier 2023-09-22 16:27:37 -04:00
parent 55b2baf2f6
commit 35bc8b401a

View File

@ -358,6 +358,11 @@ rule KernelArchitectureSetup architecture
}
ccBaseFlags += -ffreestanding ;
# Since GCC 13, autovectorization generates code which causes problems
# in various virtual machines (bare metal is apparently unaffected.)
# Until this can be resolved, disable for the kernel. (See #18593.)
ccBaseFlags += -fno-tree-vectorize ;
}
local c++BaseFlags = $(ccBaseFlags) -fno-exceptions ;