]> code.ossystems Code Review - openembedded-core.git/commitdiff
gcc: Dropping mips workaround
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 11 Nov 2021 17:00:50 +0000 (17:00 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 16 Nov 2021 22:19:47 +0000 (22:19 +0000)
I've tested without this and the ptest results for mips are the same with
and without it so the issue this was fixing in gcc 9 was likely resolved
by gcc 11.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/binutils/binutils_2.37.bb

index 7430bf13425a893c19012452a788bd8e9fde78ee..12a6fb55776e3fa362cabca599680c48b43ee426 100644 (file)
@@ -27,10 +27,6 @@ EXTRA_OECONF:class-native = "--enable-targets=all \
 
 PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'debuginfod', d)}"
 PACKAGECONFIG[debuginfod] = "--with-debuginfod, --without-debuginfod, elfutils"
-# gcc9.0 end up mis-compiling libbfd.so with O2 which then crashes on target
-# So remove -O2 and use -Os as workaround
-SELECTED_OPTIMIZATION:remove:mipsarch = "-O2"
-SELECTED_OPTIMIZATION:append:mipsarch = " -Os"
 
 do_install:class-native () {
        autotools_do_install