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

Peter Korsgaard peter at korsgaard.com
Tue Jun 6 15:08:02 UTC 2017


>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni at free-electrons.com> writes:

 > 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?

Yes, I believe so. Committed to 2017.02.x and 2017.05.x, thanks!

-- 
Bye, Peter Korsgaard



More information about the buildroot mailing list