* [Buildroot] [PATCH] binutils: fix bfin compile
@ 2016-08-21 22:20 Waldemar Brodkorb
2016-08-23 15:55 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Waldemar Brodkorb @ 2016-08-21 22:20 UTC (permalink / raw)
To: buildroot
See gcc bug for details:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77311
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
---
package/binutils/binutils.mk | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/package/binutils/binutils.mk b/package/binutils/binutils.mk
index 2936eb5..1defbb1 100644
--- a/package/binutils/binutils.mk
+++ b/package/binutils/binutils.mk
@@ -71,6 +71,12 @@ endif
BINUTILS_CONF_ENV += ac_cv_prog_MAKEINFO=missing
HOST_BINUTILS_CONF_ENV += ac_cv_prog_MAKEINFO=missing
+# gcc bug with Os/O2/O3
+# error: unable to find a register to spill in class 'CCREGS'
+ifeq ($(BR2_bfin),y)
+BINUTILS_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -O1"
+endif
+
# Install binutils after busybox to prefer full-blown utilities
ifeq ($(BR2_PACKAGE_BUSYBOX),y)
BINUTILS_DEPENDENCIES += busybox
--
2.1.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH] binutils: fix bfin compile
2016-08-21 22:20 [Buildroot] [PATCH] binutils: fix bfin compile Waldemar Brodkorb
@ 2016-08-23 15:55 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2016-08-23 15:55 UTC (permalink / raw)
To: buildroot
Hello,
On Mon, 22 Aug 2016 00:20:24 +0200, Waldemar Brodkorb wrote:
> See gcc bug for details:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77311
>
> Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
> ---
> package/binutils/binutils.mk | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/package/binutils/binutils.mk b/package/binutils/binutils.mk
> index 2936eb5..1defbb1 100644
> --- a/package/binutils/binutils.mk
> +++ b/package/binutils/binutils.mk
> @@ -71,6 +71,12 @@ endif
> BINUTILS_CONF_ENV += ac_cv_prog_MAKEINFO=missing
> HOST_BINUTILS_CONF_ENV += ac_cv_prog_MAKEINFO=missing
>
> +# gcc bug with Os/O2/O3
> +# error: unable to find a register to spill in class 'CCREGS'
> +ifeq ($(BR2_bfin),y)
> +BINUTILS_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -O1"
> +endif
> +
> # Install binutils after busybox to prefer full-blown utilities
> ifeq ($(BR2_PACKAGE_BUSYBOX),y)
> BINUTILS_DEPENDENCIES += busybox
I've applied to master, after adding the gcc PR reference in the
comment.
Thanks,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-08-23 15:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-21 22:20 [Buildroot] [PATCH] binutils: fix bfin compile Waldemar Brodkorb
2016-08-23 15:55 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox