[Buildroot] [PATCH] gcc: add upstream patch to fix build of GCC6 with GCC7

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Mon Jun 5 10:08:12 UTC 2017


Hello,

On Thu,  1 Jun 2017 09:37:58 +0200, Jörg Krause wrote:
> Building host-gcc-initial with GCC7 on the host fails due to the
> comparison of a pointer to an integer in ubsan_use_new_style_p, which
> is forbidden by ISO C++:
> 
> ubsan.c:1474:23: error: ISO C++ forbids comparison between pointer and
> integer [-fpermissive]
>        || xloc.file == '\0' || xloc.file[0] == '\xff'
> 
> Backported from:
> https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=239971
> 
> Signed-off-by: Jörg Krause <joerg.krause at embedded.rocks>
> ---
>  .../6.3.0/942-ubsan-fix-check-empty-string.patch   | 40 ++++++++++++++++++++++
>  1 file changed, 40 insertions(+)
>  create mode 100644 package/gcc/6.3.0/942-ubsan-fix-check-empty-string.patch

Applied to master, thanks. Peter: do we want this patch in the LTS
branch? We already had gcc 6.x available in the LTS branch, do we want
to make sure it builds properly for people using gcc 7.x as their host
compiler?

Thanks,

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



More information about the buildroot mailing list