summaryrefslogtreecommitdiffstats
path: root/package/binutils
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2017-04-26 19:48:02 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-05-04 22:20:25 +0200
commit33ad356ce5dacabe0d3dac89832ce264633793d3 (patch)
tree4062f7464a3f003c318b960e601f396a7a27f4af /package/binutils
parent40edddc8ccfa0b51136260969367cfa00ffeee65 (diff)
downloadbuildroot-33ad356ce5dacabe0d3dac89832ce264633793d3.tar.gz
buildroot-33ad356ce5dacabe0d3dac89832ce264633793d3.zip
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 Signed-off-by: Waldemar Brodkorb <wbx@openadk.org> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/binutils')
-rw-r--r--package/binutils/binutils.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/package/binutils/binutils.mk b/package/binutils/binutils.mk
index 03fd3a5f1e..72e2d0b3fb 100644
--- a/package/binutils/binutils.mk
+++ b/package/binutils/binutils.mk
@@ -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.
OpenPOWER on IntegriCloud