]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
gcc: don't pass --enable-standard-branch-protection
authorRoss Burton <ross.burton@arm.com>
Thu, 13 Jul 2023 11:01:18 +0000 (12:01 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 14 Jul 2023 16:01:18 +0000 (17:01 +0100)
commitbb4b9017db6a893ed054a2d2ad4cc671dec09c42
treec5bcc24edc33d69c1be2f62f43313051598bdd25
parenta542de684282bfec79f24ae2f1a2027ffde319d8
gcc: don't pass --enable-standard-branch-protection

By changing the default code generation of GCC we're inadvertently
breaking the GCC test suite, which has ~120K+ more failures when run for
aarch64 compared to x86-64.

This was because the generated code fragments included the BTI
instructions, which the test case wasn't expecting.  We can't tell the
tests globally to run without branch protection, as that will break the
tests which also turn it on.

Remove the enabling of branch protection by standard in GCC, we'll
enable it in the tune files instead.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/gcc/gcc-configure-common.inc