[Buildroot] [PATCH] ptpd2: fix bfin compile by avoiding gcc bug

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Mon Nov 21 21:04:42 UTC 2016


Hello,

On Mon, 21 Nov 2016 19:32:18 +0100, Waldemar Brodkorb wrote:

> +# GCC bug with Os/O1/O2/O3
> +# internal compiler error: in gen_add2_insn, at optabs.c:4454
> +ifeq ($(BR2_bfin),y)
> +PTPD2_CONF_ENV += CFLAGS="-O0"

You forgot to pass $(TARGET_CFLAGS) here. With your change, we loose
TARGET_CFLAGS. So I've fixed that up and applied.

However, I continue to dislike such hacks: when the problem gets fixed
by gcc, how will we notice?

Thanks,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com



More information about the buildroot mailing list