Skip to contentSkip to conversation

binutils: fix bfin compile error

PATCH New Waldemar Brodkorb 2 participants 2 messages Apr 26, 2017 – May 4, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 binutils: fix bfin compile error

Newer gcc requires even lower optimization, only with -O0 we can successfully compile binutils for the target.

Fixes:
http://autobuild.buildroot.net/results/fb95cd7f7fcc532d036ed8f13853bc6f9a64d1b3

---
 package/binutils/binutils.mk | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
package/binutils/binutils.mk +2 -2
index 03fd3a5..72e2d0b 100644
@@ -64,10 +64,10 @@ HOST_BINUTILS_CONF_ENV += MAKEINFO=true
 HOST_BINUTILS_MAKE_OPTS += MAKEINFO=true
 HOST_BINUTILS_INSTALL_OPTS += MAKEINFO=true install
 
-# gcc bug with Os/O2/O3, PR77311
+# gcc bug with Os/O1/O2/O3, PR77311
 # error: unable to find a register to spill in class 'CCREGS'
 ifeq ($(BR2_bfin),y)
-BINUTILS_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -O1"
+BINUTILS_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -O0"
 endif
 
 # Workaround a build issue with -Os for ARM Cortex-M cpus.
Signature · 1 line
2.1.4
#1 lore raw

PATCH 1/1 binutils: fix bfin compile error

Hello,

Quoted 10 lines · Waldemar Brodkorb

Newer gcc requires even lower optimization, only with -O0 we can successfully compile binutils for the target.

Fixes:
http://autobuild.buildroot.net/results/fb95cd7f7fcc532d036ed8f13853bc6f9a64d1b3

---
 package/binutils/binutils.mk | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com