Skip to contentSkip to conversation

gcc: Dropping mips workaround

PATCH In review Richard Purdie 2 participants 2 messages Nov 15, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gcc: Dropping mips workaround

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.

---
 meta/recipes-devtools/binutils/binutils_2.37.bb | 4 ----
 1 file changed, 4 deletions(-)
meta/recipes-devtools/binutils/binutils_2.37.bb +0 -4
index 7430bf13425..12a6fb55776 100644
@@ -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
Signature · 1 line
2.32.0
#1 lore raw

lgtm

Quoted 35 lines · Richard Purdie

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.

---
  meta/recipes-devtools/binutils/binutils_2.37.bb | 4 ----
  1 file changed, 4 deletions(-)
meta/recipes-devtools/binutils/binutils_2.37.bb +0 -5
index 7430bf13425..12a6fb55776 100644
@@ -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
 
 
 
-=-=-=-=-=-=-=-=-=-=-=-

Links: You receive all messages sent to this group.
View/Reply Online (#158279): https://lists.openembedded.org/g/openembedded-core/message/158279
Mute This Topic: https://lists.openembedded.org/mt/87066754/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-